mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
f89e051756
This commit implements a new way of saving and getting player coords. Player coords are synced with its assigned xPlayer, the syncing interval is defined in the configuration file. Also coords wont sync if the player is too close to their previous location. Existing servers must change their database to account for the new length of the position varchar, at 53 chars max. There's also a column default value specified in the sql file. New xPlayer functions: - .getCoords() - .setCoords() (x,y,z,heading (optional) table - .updateCoords() The last one is used for syncing coords from client (interval). The second one will teleport the player. First one is a renamed .getLastPosition()
17 lines
842 B
Lua
17 lines
842 B
Lua
Config = {}
|
|
Config.Locale = 'fr'
|
|
|
|
Config.Accounts = { 'bank', 'black_money' }
|
|
Config.AccountLabels = { bank = _U('bank'), black_money = _U('black_money') }
|
|
|
|
Config.EnableSocietyPayouts = false -- pay from the society account that the player is employed at? Requirement: esx_society
|
|
Config.DisableWantedLevel = true
|
|
Config.EnableHud = true -- enable the default hud? Display current job and accounts (black, bank & cash)
|
|
Config.EnablePvP = true -- enable pvp?
|
|
Config.MaxWeight = 24 -- the max inventory weight without backpack
|
|
|
|
Config.PaycheckInterval = 7 * 60000 -- how often to recieve pay checks in milliseconds
|
|
Config.CoordsSyncInterval = 2 * 60000 -- how often to sync coords with server in milliseconds
|
|
|
|
Config.EnableDebug = false
|