[Paid][Standalone/ESX/QBCore/NDCore] Chess board system

MapBoardSystem (4)

Chess board system

Description :speech_balloon:

This resource will add to your server tables for playing chess, an incredibly simple and complex game at the same time.

Preview: YouTube
Buy: Tebex


Features :spiral_notepad:

  • Standalone script
  • Support ESX, QBCore and NDCore Frameworks
  • The possibility of both a friendly game and a game for money.
  • Time limit to prevent endless game.
  • Minimum load on the client and server.

Server event :scroll:

chess:gameEnd

Arguments:

  • whitePlayer (Player source)
  • blackPlayer (Player source)
  • winner (w, b or empty)
-- Example
AddEventHandler("chess:gameEnd", function(whitePlayer, blackPlayer, winner)
    print("whitePlayer", whitePlayer)
    print("blackPlayer", blackPlayer)
    print("Winner", winner)
end)

Config :gear:

Config = {}


Config.TableModel = 'v_ret_csr_table'
Config.ChairModel = 'v_ilev_chair02_ped'

Config.WhiteChair = {
    x = 0.0,
    y = 1.0,
    z = -0.4,
    h = 0.0,
}

Config.BlackChair = {
    x = 0.0,
    y = -1.0,
    z = -0.4,
    h = 180.0,
}

Config.CharPlace = {
    x = 0.0,
    y = 0.1,
    z = -0.05,
    h = 180.0,
}

Config.TextBoardConfig = {
    offsetZ = 1.0,
    scale = 0.2,
    r = 255,
    g = 255,
    b = 255,
    a = 255,
    showDist = 10
}

Config.EKey = {
    Text = "Press ~INPUT_PICKUP~ to join table",
    Distance = 1.5
}

--- Text on the table
Config.GameRunningText = "Game is running"
Config.EmptyTableText = "Free table"
Config.BetString = "\n~g~Bet: [email protected]@"
Config.SecondPlayerWaitText = "Waiting second player"
Config.SecondPlayerWaitHeaderText = "Waiting second player"

Config.PlayerSeconds = 10 * 60

Config.CameraOffset = {
    x = -1.6,
    y = -1.0,
    z = 2.0,
    pointZ = 0.5
}

Config.BoardsPositions = {
    {x=177.27,y=-910.48,z=29.69,h=334.60},
    {x=178.66,y=-907.50,z=29.69,h=334.79},
    {x=180.47,y=-903.66,z=29.69,h=334.79},
    {x=182.54,y=-899.26,z=29.69,h=334.79},
    {x=183.75,y=-907.11,z=29.69,h=230.47},
    {x=187.89,y=-910.22,z=29.69,h=233.04},
    {x=191.70,y=-913.01,z=29.69,h=233.63},
    {x=195.21,y=-915.59,z=29.69,h=233.63},
    {x=192.39,y=-919.34,z=29.69,h=145.55}
}


Other data

Code accessible Config
Subscription-based No
Lines ~600
Requirements ESX, QBCore, NDCore optional
Support Yes
Future Updates Free
1 Like

Awesome! you are a genius :wink: