Commit Graph

5 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 99cd701286 refactor+fix(esx/client): Remove checks performed by the function
- Also resolves an issue with ESX.PlayerData.dead never setting as true
2021-07-22 20:38:06 +10:00
Linden a17b44b1e7 fix(esx): Disable autospawning
- Fixes compatibility for players running basic-gamemode or maps
2021-06-28 16:35:08 +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