Commit Graph
1338 Commits
Author SHA1 Message Date
ESXCrackhead 6aed226671 Merge pull request #58 from thelindat/patch-1
fix(client/main): Ensure the hud displays initially; get the visibility of statusbars correctly
2021-06-06 17:14:18 -05:00
Linden 97d7e5186b fix(client/main): Ensure the hud displays initially; get the visibility of statusbars correctly 2021-06-07 08:07:10 +10:00
Taso d752235eb4 Merge pull request #57 from thelindat/master
refactor+fix(server/main): Check if using Legacy; use ternary to define xPlayers; fixed incorrect values when defining xPlayer
2021-06-05 18:23:41 -04:00
Linden b3c20e174b fix(server/main): Fix incorrect values (if v is table, xPlayer equals v; else GetPlayerFromId(v)) 2021-06-06 05:57:46 +10:00
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
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
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 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 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 ee711ff9a8 fix(client/main): Set PlayerData.ped initial value correctly 2021-05-31 20:52:09 +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 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 ee3d1d024f improvement(server/main): Use the new xPlayer loop when restarting the resource 2021-05-28 10:29:02 +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 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 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 7d84e80539 chore(legacy/fxmanifest): List spawnmanager as a dependency 2021-05-23 23:18:16 +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 b88930674c chore(config): Set multichar to false by default 2021-05-23 00:05:11 +10:00
Linden e4954e6693 improvement(server/main): Allow setting identity without using multicharacter 2021-05-22 18:04:01 +10:00