Commit Graph

6 Commits

Author SHA1 Message Date
Linden f4d7991b10 refactor(esx): various changes
Minor improvements to spawning.
Moved internal variables out of the ESX namespace.
SavePlayer function now uses a prepared statement.
Replaced bulk SavePlayers query with prepared statements.
Cleaned up newPlayer/loadPlayer queries.
Player load and creation functions use prepared statements.
Removed async dependency.
2022-01-19 20:58:20 +11:00
Linden 5fe78d33a3 fix(esx/client): Fix ESX.Game.GetPeds; allow string or hash for ESX.Game.SpawnObject 2021-07-12 17:53:04 +10:00
Linden 5245e1c4af refactor(esx): Reduce the sleep on TimeoutCallbacks 2021-07-06 09:01:26 +10:00
Linden ac5e7256de improvement(esx): Replace entity iterator with GetGamePool natives 2021-07-04 05:01:09 +10:00
Linden e3113ab7f9 improvement(esx/client): Send both new and old value of playerdata with event; properly set job/grade display for hud
- Makes the event a viable alternative to esx:setJob as we can compare if the value has changed.

- Formatting for job/grade would not update when going to or from unemployed
2021-06-26 03:49:21 +10:00
Linden 7c3e817cfa chore: Reorganise directories; include a sample server.cfg 2021-06-25 21:34:28 +10:00