I’m not sure if the exports work or if i’m doing something wrong…
I have 2 resources, i want to get the value from resource 1 in resource 2. (let’s name the resources res1 and res2 as an example)
file res1/client.lua
local PlayerIsCop = true
function checkIfPlayerIsCop()
return PlayerIsCop
end
file res1/__resource.lua
resource_manifest_version ‘44febabe-d386-4d18-afbe-5e627f4af937’
client_script ‘client.lua’
export ‘checkIfPlayerIsCop’
in the other resource file : res2/client.lua
local isCop = exports.res1:checkIfPlayerIsCop()
i always get an error: No such export checkIfPlayerIsCop in resource res1