Skip to content

Instantly share code, notes, and snippets.

@cm8263
Created September 9, 2019 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cm8263/a4ebc2c583cf042fa04842a4c4c52977 to your computer and use it in GitHub Desktop.
Save cm8263/a4ebc2c583cf042fa04842a4c4c52977 to your computer and use it in GitHub Desktop.
-- When the resource is loaded on the client
AddEventHandler("onClientResourceStart", function (ResourceName)
-- If the started resource is this resource
if(GetCurrentResourceName() == ResourceName) then
-- Pass whitelist object to server for updating
TriggerServerEvent("Whitelist:WhitelistCheck", Whitelist)
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment