Config = { License = 'tumadreesputa', -- Insert your rcore license NotificationDistance = 10.0, PropsToRemove = { vector3(1992.803, 3047.312, 46.22865), }, --[[ -- To use custom notifications, implement client event handler, example: AddEventHandler('rcore_pool:notification', function(serverId, message) print(serverId, message) end) ]] CustomNotifications = false, --[[ -- To use custom menu, implement following client handlers AddEventHandler('rcore_pool:openMenu', function() -- open menu with your system end) AddEventHandler('rcore_pool:closeMenu', function() -- close menu, player has walked far from table end) -- After selecting game type, trigger one of the following setupTable events TriggerEvent('rcore_pool:setupTable', 'BALL_SETUP_8_BALL') TriggerEvent('rcore_pool:setupTable', 'BALL_SETUP_STRAIGHT_POOL') ]] CustomMenu = false, --[[ When you want your players to pay to play pool, set this to true AND implement the following server handler in your framework of choice. The handler MUST deduct money from the player and then CALL the callback if the payment is successful, or inform the player of payment failure. This script itself DOES NOT implement ESX/vRP logic, you have to do that yourself. AddEventHandler('rcore_pool:payForPool', function(playerServerId, cb) print("This should be replaced by deducting money from " .. playerServerId) cb() -- successfuly set balls on table end) ]] PayForSettingBalls = false, BallSetupCost = nil, -- for example: "$1" or "$200" - any text --[[ You can integrate pool cue into your system with SERVERSIDE HANDLERS - rcore_pool:onReturnCue - called when player takes cue - rcore_pool:onTakeCue - called when player returns cue CLIENTSIDE EVENTS - rcore_pool:takeCue - forces player to take cue in hand - rcore_pool:removeCue - removes cue from player's hand This prevents players from taking cue from cue rack if `false` ]] AllowTakePoolCueFromStand = true, --[[ This option is for servers whose anticheats prevents this script from setting players invisible. When player's ped is blocking camera when aiming, set this to true ]] DoNotRotateAroundTableWhenAiming = false, MenuColor = {245, 127, 23}, Keys = { BACK = {code = 200, label = 'INPUT_FRONTEND_PAUSE_ALTERNATE'}, ENTER = {code = 38, label = 'INPUT_PICKUP'}, SETUP_MODIFIER = {code = 21, label = 'INPUT_SPRINT'}, CUE_HIT = {code = 179, label = 'INPUT_CELLPHONE_EXTRA_OPTION'}, CUE_LEFT = {code = 174, label = 'INPUT_CELLPHONE_LEFT'}, CUE_RIGHT = {code = 175, label = 'INPUT_CELLPHONE_RIGHT'}, AIM_SLOWER = {code = 21, label = 'INPUT_SPRINT'}, BALL_IN_HAND = {code = 29, label = 'INPUT_SPECIAL_ABILITY_SECONDARY'}, BALL_IN_HAND_LEFT = {code = 174, label = 'INPUT_CELLPHONE_LEFT'}, BALL_IN_HAND_RIGHT = {code = 175, label = 'INPUT_CELLPHONE_RIGHT'}, BALL_IN_HAND_UP = {code = 172, label = 'INPUT_CELLPHONE_UP'}, BALL_IN_HAND_DOWN = {code = 173, label = 'INPUT_CELLPHONE_DOWN'}, }, Text = { BACK = "Return", HIT = "Hit", BALL_IN_HAND = "Ball-in-Hand", BALL_IN_HAND_BACK = "Return", AIM_LEFT = "Aim Left", AIM_RIGHT = "Aim Right", AIM_SLOWER = "Aim Slowly", POOL = 'Pool', POOL_GAME = 'Billard Game', POOL_SUBMENU = 'Configuration', TYPE_8_BALL = '8-ball', TYPE_STRAIGHT = 'Straight pool', HINT_SETUP = 'Set Table', HINT_TAKE_CUE = 'Take Cue', HINT_RETURN_CUE = 'Return Cue', HINT_HINT_TAKE_CUE = 'To play take a Cue', HINT_PLAY = 'Play', BALL_IN_HAND_LEFT = 'Left', BALL_IN_HAND_RIGHT = 'Right', BALL_IN_HAND_UP = 'Up', BALL_IN_HAND_DOWN = 'Down', BALL_POCKETED = '%s has been entered', BALL_IN_HAND_NOTIFY = 'The player has the cue bacll in his hand', BALL_LABELS = { [-1] = 'White ball', [1] = '~y~Solid 1~s~', [2] = '~b~Solid 2~s~', [3] = '~r~Solid 3~s~', [4] = '~p~Solid 4~s~', [5] = '~o~Solid 5~s~', [6] = '~g~Solid 6~s~', [7] = '~r~Solid 7~s~', [8] = 'Black 8', [9] = '~y~Striped 9~s~', [10] = '~b~Striped 10~s~', [11] = '~r~Striped 11~s~', [12] = '~p~Striped 12~s~', [13] = '~o~Striped 13~s~', [14] = '~g~Striped 14~s~', [15] = '~r~Striped 15~s~', } }, }