Skip to content

Commit

Permalink
refactor(es_extended/**): cleanup, remove useless code, formatting
Browse files Browse the repository at this point in the history
[+] Added ESX.PlayerData.player
[+] Added ESX.Game.IsDriverSeatEmpty
[+] Added Config.MapName
[+] Added Config.GameType
[+] Added Config.AdminGroups.DEFAULT_GROUP
[+] Added command_setcoords_h string
[+] Added diagnostics
[+] Define functions as local

[/] Removed useless variables
[/] Add more spaces for better visibility
[/] Removed ['']
[/] Replaced ~= nil with not
[/] Unpack vectors properly
[/] Replaced " to '
[/] Use RegisterNetEvent
[/] Replaced table.insert with [#TABLE + 1]
[/] Edited setcoords command
[/] Properly written internal functions
  • Loading branch information
zRxnx committed Nov 22, 2023
1 parent bcc1e87 commit 781f506
Show file tree
Hide file tree
Showing 43 changed files with 1,672 additions and 1,055 deletions.
5 changes: 2 additions & 3 deletions [core]/es_extended/client/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ if GetResourceState('ox_inventory') ~= 'missing' then
Config.OxInventory = true
end

AddEventHandler("esx:getSharedObject", function()
local Invoke = GetInvokingResource()
print(("[^1ERROR^7] Resource ^5%s^7 Used the ^5getSharedObject^7 Event, this event ^1no longer exists!^7 Visit https://documentation.esx-framework.org/tutorials/tutorials-esx/sharedevent for how to fix!"):format(Invoke))
RegisterNetEvent('esx:getSharedObject', function()
print(('[^1ERROR^7] Resource ^5%s^7 Used the ^5getSharedObject^7 Event, this event ^1no longer exists!^7 Visit https://documentation.esx-framework.org/tutorials/tutorials-esx/sharedevent for how to fix!'):format(GetInvokingResource))
end)
723 changes: 460 additions & 263 deletions [core]/es_extended/client/functions.lua

Large diffs are not rendered by default.

Loading

0 comments on commit 781f506

Please sign in to comment.