Commit Graph

233 Commits

Author SHA1 Message Date
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 25970b55ba refactor(client/main): Skin is no longer stored in PlayerData 2021-06-03 23:29:09 +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 ebafc8bcb4 chore(legacy/version): Update commit version to 1.3.0 2021-05-28 08:09:56 +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 827f2453b5 refactor(command): Remove unneeded variable 2021-05-21 07:14:12 +10:00
Linden 46f2b2c28b fix(legacy/multichar): Remove HUD components if player logs out 2021-05-18 01:00:30 +10:00
Linden 2555ea7345 improvement(legacy/multichar): Fade screen to black instantly 2021-05-17 20:50:44 +10:00
Linden a4f4da621f feat(legacy/multichar): Added support for esx_multicharacter; applied minor changes to spawning 2021-05-17 20:33:25 +10:00
Linden 6dbad4e6da Merge branch 'esx-framework:legacy' into legacy 2021-05-17 19:18:26 +10:00
DokaDoka 06527c0692 fix(legacy/functions) 3Dtext rectangle scale 2021-05-17 15:00:53 +10:00
Linden 02a2614cff fix(legacy/client): Remove redundant callback and unused code
This is already handled by esx_skin and results in sending two callbacks.
2021-05-16 23:41:58 +10:00
Linden c4bc02ff8e improvement(legacy/client): Store ped & dead in ESX.PlayerData 2021-05-16 19:45:58 +10:00
Linden 08088cc82a Merge branch 'pr/1148' into legacy 2021-05-16 19:31:19 +10:00
MiddleSkillz 7e00e1212c tweak(client/functions): Updates to Events & Functions
Updated some events and functions to preserve some backwards compatibility with 4head scripts.
2021-05-12 09:51:10 -06:00
Linden 3d29035402 Set account data too 2021-05-09 01:04:11 +10:00
thelindat fe86ef5f56 Minor change to functions
Add a TriggerEvent to `ESX.SetPlayerData` so we can tell other resources to update
Only set networked vehicles as persistent and able to migrate
Return entityCoords from `ESX.Game.GetVehicleInDirection`
Only run `ServerSyncLoops` while ESX.PlayerLoaded is true
Create an imports file to set ESX object and EventHandler for `esx:setPlayerData`
2021-05-06 19:42:56 +10:00
MiddleSkillz 620ca92f61 fix: weird esx:spawnVehicle code 2021-05-06 02:35:47 -06:00
MiddleSkillz 1662caa137 fix: Remove Redundant Function 2021-05-06 02:34:32 -06:00
MiddleSkillz c9aaab9a08 fix: force vector3 on Teleport function 2021-05-06 02:34:03 -06:00
MiddleSkillz 0cc99faa5f fix: esx:loadingScreenOff for compatibility 2021-05-06 02:28:16 -06:00
MiddleSkillz 5c471535f1 refactor: odd code formatting 2021-05-06 02:27:20 -06:00
MiddleSkillz bf61df0203 fix: SetMaxWantedLevel doesn't need to be in a loop. 2021-05-06 02:26:52 -06:00
MiddleSkillz 531c831e4c refactor: optimize ESX.TimeoutCallbacks 2021-05-06 02:24:02 -06:00
MiddleSkillz 4cd90dc1d8 refactor: Optimize death module 2021-05-06 02:21:31 -06:00
MiddleSkillz 7f4f4d14e0 refactor: Optimize weapon ammo tracking 2021-05-06 02:18:29 -06:00
MiddleSkillz ca9515d615 refactor: remove 1 time use variables 2021-05-06 02:16:45 -06:00
MiddleSkillz d100214a03 Fully Fix spawning I think 2021-05-06 02:12:44 -06:00
MiddleSkillz e9a26a4133 Enjoy More Bad Code 2021-05-06 02:00:47 -06:00
MiddleSkillz 0e68354728 fix: [client/main] identity might actually work now 2021-05-06 01:56:34 -06:00
MiddleSkillz 2aed49b5eb refactor: Remove Stupid LoadingScreenOff thing 2021-05-06 01:43:11 -06:00
MiddleSkillz 07dd52d78a refactor: This function doesn't even do anything! 2021-05-06 01:37:17 -06:00
MiddleSkillz b645a74fb8 bump: version 1.1.9 2021-05-06 01:35:18 -06:00
MiddleSkillz 888e48a3dd Push Before PR 2021-05-05 01:21:53 -06:00
MiddleSkillz 8f91023bd9 Added Some More Stuff 2021-05-05 01:18:20 -06:00
Mycroft 5b1e5b9ea4 add more commands 2021-05-03 23:32:02 +01:00
Mycroft c8c8ffeb4d add features 2021-05-03 22:37:02 +01:00
Mycroft 1f69396992 Update main.lua 2021-05-03 21:48:22 +01:00
Mycroft 6c7b3ecf9e tweaks 2021-05-03 20:39:18 +01:00
Mycroft 9212219d46 changes 2021-05-03 20:04:39 +01:00
Mycroft c4add91157 things 2021-04-29 23:04:36 +01:00
Mycroft 7d2488e40c config 2021-04-29 19:53:32 +01:00