[Help] function all resource

hello

in __resource.lua to export ‘MyFunction’

Nameresource:MyFunction ( attempt to index a nil value (global ‘Nameresource’)

Plz help my for export function to all resource

Look in the spawnmanager resource to see how they export.

exports {
‘MyFunction’
}

exports.Nameresource:MyFunction()

is funny

for Server

AddEventHandler(‘Mysql:Export’, function(call)
call(client, mysql)
end)

TriggerEvent(‘Mysql:Export’, function(_client, _mysql)
client = _client
mysql = _mysql
end)