getSharedObject
Client
R = nil
Citizen.CreateThread(function()
while R == nil do
TriggerEvent('0r-core:getSharedObject', function(obj) R = obj end)
Citizen.Wait(0)
end
end)
Server
R = nil
TriggerEvent('0r-core:getSharedObject', function(obj) R = obj end)