PashaBiceps Posted January 3, 2021 Share Posted January 3, 2021 (edited) Hello, can you guys help me?? Invehicle, getElementData and setElementModel is not working. I don't understand why... Gave me an error ( Bad Argument ) local invehicle = getPedOccupiedVehicle ( localplayer ) if not invehicle then if getElementData(localplayer, "Male") == true then setTimer ( function() setElementModel (localplayer, 34 ) end, 4000, 1 ) triggerServerEvent("itemAnims",localPlayer,localPlayer,34) else exports.YM_DxMessages:addBox("You're not a man!", "error") end else exports.YM_DxMessages:addBox("You can't change your clothes here!", "error") end Edited January 3, 2021 by GodKraken Link to comment
Tekken Posted January 3, 2021 Share Posted January 3, 2021 Is this client ? You sure it’s localplayer and not localPlayer ? 1 Link to comment
PashaBiceps Posted January 3, 2021 Author Share Posted January 3, 2021 3 minutes ago, Tekken said: Is this client ? You sure it’s localplayer and not localPlayer ? Omg kkkkkk, thanks you. Worked 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