Fabi Posted January 18, 2020 Share Posted January 18, 2020 (edited) Preciso de que alguém me ajude a colocar permissão nesse script EXEMPLO : if isObjectInACLGroup ("user." .. accName, aclGetGroup ("vip")) then function fix (playerSource) local theVehicle = getPedOccupiedVehicle (playerSource) if theVehicle and getVehicleController ( theVehicle ) == playerSource then fixVehicle (theVehicle) outputChatBox ("" , thePlayer) end end addCommandHandler ("fix" , fix) Edited January 18, 2020 by Fabi Link to comment
Tommy. Posted January 18, 2020 Share Posted January 18, 2020 A solução está na resposta, kk function fix (playerSource) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(playerSource)), aclGetGroup ("vip")) then local theVehicle = getPedOccupiedVehicle (playerSource) if theVehicle and getVehicleController ( theVehicle ) == playerSource then fixVehicle (theVehicle) outputChatBox ("" , thePlayer) end end end addCommandHandler ("fix" , fix) 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now