Linden
16b1fc3316
refactor(server/main): Cache if ESX.GetExtendedPlayers() exists; use short-circuit evaluation to define xPlayers
2021-06-05 12:35:16 +10:00
Linden
7c9818dbdc
refactor(server/main): Cache if ESX.GetExtendedPlayers() exists; use short-circuit evaluation to define xPlayers
2021-06-05 12:32:24 +10:00
Taso
bbc848e699
Merge pull request #56 from thelindat/master
...
(legacy): Resolve server hitches; add support for relogging; (general): improved clientside performance
2021-06-04 21:41:32 -04:00
Taso
5d28b23fec
Merge pull request #149 from thelindat/master
...
fix(legacy/multichar): Add support when using multicharacter
2021-06-04 21:36:03 -04:00
Taso
3a81208632
Merge pull request #103 from thelindat/master
...
fix(legacy/multichar): Do not trigger callback if multichar is enabled
2021-06-04 21:34:47 -04:00
Linden
6af6edaa11
refactor+fixes(client/main): Ensure all cameras are destroyed; improved spawning "jitter"
2021-06-05 11:19:00 +10:00
Taso
89f8d87681
Merge pull request #1169 from thelindat/multichar
...
feat+improvements(legacy): Multicharacter support; bug fixes and optimisation; retrieve player identity and death status on load
2021-06-04 21:17:32 -04:00
Linden
150db2feac
refactor(server/main): Require identity or multichar config options to load player data; always set the initial death value to 0
2021-06-05 09:13:45 +10:00
Linden
8a5765504d
chore(config): Add option to enable identity integration
2021-06-05 09:12:33 +10:00
Linden
776004ff43
fix(server/main): Remove leftover code from updating query
2021-06-05 01:18:11 +10:00
Linden
55edd9ad66
refactor(client/functions): Don't send events for inventory and loadout
...
- While most resources for ESX will utilise PlayerData in some way, few will require up-to-date inventory and loadout data.
- Those that do use the getter or a server callback, anyway.
2021-06-04 20:55:05 +10:00
Linden
16d97ec1e3
chore(config): Define the default value for Display
2021-06-04 13:15:44 +10:00
Linden
20b2319e97
refactor(client/main): Remove unused variable; optimisations
...
- Status.max was never defined anywhere (always nil) and was not referenced anywhere
- Add a toggle for status bars (Config.Display); setting to false reduces CPU usage
- onTick thread no longer retrieves StatusData twice; receives the minimal data then adds the other variables if Display is enabled
2021-06-04 13:14:56 +10:00
Linden
98687c3b38
fix(nui/js): Use the percent value already being sent by Lua
2021-06-04 12:59:15 +10:00
Linden
5a8e750287
fix(client/main): Disable status bars after relogging
2021-06-04 11:45:22 +10:00
Linden
97289e615b
fix(client/main): Prevent multiple onTick threads from running at once after relogging
2021-06-04 11:41:57 +10:00
Linden
30de47e09d
fix(server/commands): Use the correct variable for clearloadout
2021-06-04 01:02:24 +10:00
Linden
78ca5462c3
Update fxmanifest.lua
2021-06-04 00:35:32 +10:00
Linden
25970b55ba
refactor(client/main): Skin is no longer stored in PlayerData
2021-06-03 23:29:09 +10:00
Linden
64652e4661
refactor(server/main): Do not store skin in PlayerData, send it separately
2021-06-03 23:26:16 +10:00
Linden
7a62980c27
Update version.json
2021-06-03 23:22:25 +10:00
Linden
2ff383616f
improvements(server/main): Set the initial value for PlayerData.dead; use MySQL.store for loadESXPlayer
2021-06-03 23:21:31 +10:00
Linden
3ff2f4ac74
fix(server/commands): /clearloadout will properly wipe all weapons
...
Loadout indexes are being updated while the loop runs causing it to break after removing a few weapons.
This reverts the command to how it worked prior to ESX 1.2
2021-06-03 19:38:29 +10:00
Linden
88e97e2270
improvement(server/main): Prevent multiple xPlayer loops from running when running getOnlinePlayers
2021-06-03 11:31:17 +10:00
Linden
fd44718c19
fix(server/main): ESX.GetPlayerFromId needs to check the value, not index
2021-06-03 07:55:36 +10:00
Linden
653613d55b
fix(server/main): Left incorrect values from testing (type should equal table)
2021-06-03 07:37:51 +10:00
Linden
7e0cb29d80
improvement(server/main): Add support for ESX.GetExtendedPlayers() if using ESX Legacy
2021-06-03 07:29:20 +10:00
Linden
0cc776dfc3
refactor(server/main): Removed duplicate code and use type when defining xPlayer
2021-06-03 07:12:09 +10:00
Linden
ca6462ad6a
refactor(server/functions): Return ESX.Players directly, no need to loop
2021-06-02 18:08:32 +10:00
Linden
74f01944f1
improvement+fix(client/main): Save weapon ammo properly; create a timer for saving ammo instead of triggering an event every frame
2021-06-02 12:41:46 +10:00
Linden
a325f96c64
tweak(client/main): Set PVP and hud after the player has spawned
2021-06-02 11:56:22 +10:00
Linden
fe78cbd5ef
Update readme.md
2021-06-01 21:42:19 +10:00
Linden
0021469c3f
Update readme.md
2021-06-01 07:33:04 +10:00
Linden
ee711ff9a8
fix(client/main): Set PlayerData.ped initial value correctly
2021-05-31 20:52:09 +10:00
Linden
9df67578bb
tweak(client/main): Remove no collision (falls through world); set player as invincible
2021-05-31 19:29:58 +10:00
Linden
f888ad157b
improvement(client/main): Players are now invisible and have no collision while on character selection
2021-05-31 19:24:13 +10:00
Linden
1b75d9cf54
refactor(client/functions): Remove rect from DrawText3D
...
It doesn't scale well with different fonts and text size - was only recently added and has not worked correctly
2021-05-31 04:04:27 +10:00
Linden
976922f43a
fix(client/main): Add back trigger and natives for compatibility
2021-05-31 01:52:09 +10:00
Linden
5c70b094ef
fix(server/main): Remove waits
2021-05-30 10:24:30 +10:00
Linden
358f2be625
Update readme.md
2021-05-30 04:20:32 +10:00
Linden
f633b98a9c
refactor(client/main): Cleaned up variables
2021-05-29 04:41:47 +10:00
Linden
67b2be9006
fix(client/functions): Fixed the distance scaling for DrawRect; added rect as an option
...
DrawRect was only added in the last month so this shouldn't affect anyone
2021-05-28 12:48:37 +10:00
Linden
b13e44939c
improvement(server/main): Create a stored query for saving players
2021-05-28 11:42:22 +10:00
Linden
aa4c68567f
fix(client/main): Spawning fix with new characters
2021-05-28 11:38:59 +10:00
Linden
ee3d1d024f
improvement(server/main): Use the new xPlayer loop when restarting the resource
2021-05-28 10:29:02 +10:00
Linden
46ef7d8094
improvement(server/main): Store the character selection query in advance
2021-05-28 10:16:01 +10:00
Linden
d876399bab
chore(server/main): Removed leftover debug code
2021-05-28 10:08:26 +10:00
Linden
b823e7d557
fix(legacy/multichar): Clear player status when logging out
2021-05-28 09:58:24 +10:00
Linden
ae9cde16e8
improvement(server/main): Use the new xPlayer loop when using ESX Legacy
2021-05-28 09:55:32 +10:00
Linden
8669d816dd
Merge branch 'multichar' of https://github.com/thelindat/es_extended into multichar
2021-05-28 08:10:41 +10:00