Commit Graph

4297 Commits

Author SHA1 Message Date
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
Linden ebafc8bcb4 chore(legacy/version): Update commit version to 1.3.0 2021-05-28 08:09:56 +10:00
Linden 64510560cc Merge branch 'legacy' into multichar 2021-05-28 08:06:05 +10:00
Linden bccca2b8e0 improvement(server/main): Create a stored query for creating new users 2021-05-28 07:45:43 +10:00
Linden 0bfe39d527 refactor(server/commands): Remove sv_restart 2021-05-28 06:05:53 +10:00
Linden b125fa91fc tweak(server/main): Removed leftover print 2021-05-28 05:57:19 +10:00
Linden 2cc58b6e09 improvement(client/hud): Setup a proper function for clearing the hud, instead of sending multiple NUI messages 2021-05-28 05:54:28 +10:00
Linden 20fa7ae52f fix(client/functions): Fix DrawText3D scaling
This was how the function previously worked, minus the rectangle and vector setting.
2021-05-28 05:51:05 +10:00
Linden 8a5cd887ce tweak(server/main): Modify variable names; add warnings when multichar is disabled or not running Legacy; send the identifier prefix to ESX 2021-05-28 05:47:12 +10:00
Linden 8427ff7185 fix(client/main): Use skin table size instead 2021-05-28 05:26:30 +10:00
Linden aca2a00d0a fix(client/main): Check if skin is defined, else if skin does not have a second key 2021-05-28 05:20:47 +10:00
Linden 67965129f4 fix(client/main): Move events after spawning into the spawnmanager callback; do not skip spawnmanager fade 2021-05-28 05:18:19 +10:00
Linden cc4b8dba68 improvements(client/main): Clean the code for assigning player model and skin; trigger the esx_skin menu when player has no skin 2021-05-28 04:39:58 +10:00
Linden 13324ad2eb fix(client/main): Prevent black screen when players decide not to have a skin 2021-05-27 18:07:52 +10:00
Linden b85a933af0 fix(client/main): Require esx_menu_default to have fully started 2021-05-27 03:25:26 +10:00
Linden 1a0ce58ece fix(client): Enable more control actions for people using modified ESX menu 2021-05-24 03:16:52 +10:00
Linden 7d84e80539 chore(legacy/fxmanifest): List spawnmanager as a dependency 2021-05-23 23:18:16 +10:00
Linden ceaf32bd80 fix(client): Prevent player from spawning without a model 2021-05-23 23:00:03 +10:00
Linden bc13c9d34b feat(server/functions): Add a function to retrieve all xPlayer data
If people need to loop through xPlayers, they should use this
2021-05-23 22:18:27 +10:00
Linden fa6a12866f Update readme.md 2021-05-23 20:38:55 +10:00
Linden 47299fbb71 improvements(client); Initial character spawn should be smoother; moved initial spawn; set player model based on skin sex and not gender 2021-05-23 06:01:55 +10:00
Linden f27a94ef71 improvement(client): Conceal vehicles while selecting character 2021-05-23 05:12:49 +10:00
Linden b88930674c chore(config): Set multichar to false by default 2021-05-23 00:05:11 +10:00