Skip to content

Commit

Permalink
accessing undefined variable Invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Nov 24, 2023
1 parent 0f02f71 commit 28e6c62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@
35. [esx-radio] fix: fixed No such export addChannelCheck in resource pma-voice @bitpredator
36. [bpt_vehicletax]: chore: clean up the code @bitpredator
37. [jsfour-idcard]: fix: value assigned to variable ESX is overwritten @bitpredator
38. [es_extended]: refactor/fix: cleanup, remove useless code, formatting + unused argument last @bitpredator
38. [es_extended]: refactor/fix: cleanup, remove useless code, formatting + fix lint error: unused argument last;
accessing undefined variable Invoke @bitpredator
11 changes: 5 additions & 6 deletions server-data/resources/[esx]/es_extended/client/common.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
AddEventHandler('esx:getSharedObject', function(cb)
print(('[^3WARNING^7] ^5%s^7 used ^5esx:getSharedObject^7, this method is deprecated and should not be used! Refer to ^5https://bitpredator.github.io/bptdevelopment/docs/esx-tutorial/sharedevent^7 for more info!'):format(Invoke))
cb(ESX)
end)

exports('getSharedObject', function()
return ESX
end)

if GetResourceState('ox_inventory') ~= 'missing' then
Config.OxInventory = true
end
end

RegisterNetEvent('esx:getSharedObject', function()
print(('[^1ERROR^7] Resource ^5%s^7 Used the ^5getSharedObject^7 Event, this event ^1no longer exists!^7 Visit https://bitpredator.github.io/bptdevelopment/docs/esx-tutorial/sharedevent for how to fix!'):format(GetInvokingResource))
end)

0 comments on commit 28e6c62

Please sign in to comment.