-
-
Save cm8263/a4ebc2c583cf042fa04842a4c4c52977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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