Skip to content

Commit

Permalink
chore: code cleanup and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Nov 5, 2023
1 parent d33f9e3 commit e3bb7a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@
9. [esx_addons]: chore: replace esx_drivingschooljob with esx_dmvschool @bitpredator
10. [SQL]: chore: update database @bitpredator
11. [maps]: delete: remove maps verpi_driving_school @bitpredator
12. [ox_inventory] chore: remove store dmvshool @bitpredator
12. [ox_inventory]: chore: remove store dmvshool @bitpredator
13. [BasicItem]: chore: code cleanup and fixes @bitpredator
9 changes: 1 addition & 8 deletions server-data/resources/[esx_addons]/BasicItem/client/main.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
ESX = nil
CreateThread(function()
ESX = exports["es_extended"]:getSharedObject()
while ESX.GetPlayerData().job == nil do
Wait(10)
end
ESX.PlayerData = ESX.GetPlayerData()
end)
ESX = exports["es_extended"]:getSharedObject()

RegisterNetEvent("IDCARD:USE")
AddEventHandler("IDCARD:USE", function()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Locales['en'] = {
Locales['it'] = {
['you_have_licensed'] = 'hai ricevuto la tua licenza'
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ESX = nil
ESX = exports["es_extended"]:getSharedObject()

ESX.RegisterUsableItem('idcard', function(source)
local _source = source
TriggerClientEvent("IDCARD:USE", _source)
Expand Down

0 comments on commit e3bb7a8

Please sign in to comment.