Hey guys! I have a quick question. Does this part of esx code
TriggerEvent(‘esx:getSharedObject’, function(obj)
ESX = obj
end)
Get the reference to the table or the program copys it?
This works same as include in C++ code.
Which is? Reference or copy? Sorry for being dumb
Reference to the library.
Ok so If the table has a value x (x = 25) and I get the table in other resource and I do x / 5 ---- X is 5 in both resources?
X is 25 for ESX Base but in your work it’s 5
So
ESX BASE
ESX.x = 25
MY CODE
ESX.x = 5
Then we both print:
ESX: 25
My code: 5
In that case it’s just making another copy?
I mean you borrow functions listed in es_extended.
Oh ok I have just browsed trough the code and find out it uses events in the end to do those actions
1 Like