micheal1230 Posted May 18, 2012 Posted May 18, 2012 Well The Title Says All i Get That Error, Attempts To Call Global getLocalPlayer (a Nil Value) My Script! function armor(thePlayer) name = getPlayerName(getLocalPlayer(thePlayer)) if name == "Harry_Shea" then setPedArmor(thePlayer, 100) end end addCommandHandler("armor",armor)
Guest Guest4401 Posted May 18, 2012 Posted May 18, 2012 You are using a serverside script and getLocalPlayer is clientside function. And you don't even require that in the first place. Try function armor(thePlayer) name = getPlayerName(thePlayer) if name == "Harry_Shea" then setPedArmor(thePlayer, 100) end end addCommandHandler("armor",armor)
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