Hi guys!
Again I here to ask your help
Well, I trying to do a function in my gamemode to check if a player is VIP or not...
To call this function I use triggerServerEvent
triggerServerEvent("checkIfPlayerIsVIP", localPlayer)
And I'm using the triggerServerEvent inside a if, see:
if (triggerServerEvent("checkIfPlayerIsVIP", localPlayer)) == true then
In the gamemode I put it:
addEvent( "checkIsVIP", true )
addEventHandler( "checkIsVIP", root,
function ()
local accName = getAccountName(getPlayerAccount(source))
if isObjectInACLGroup("user.".. accName, aclGetGroup("VIP")) then
return true
else
return false
end
end)
So I would want that the function in gamemode return a boolean value to use on my if to check if player is VIP or not
I hope you understood my situation!
Thanks for all!