charaf12 Posted March 13, 2014 Posted March 13, 2014 what proplem in this code addEventHandler ( "onPlayerVehicleEnter", root, function( vehicle ) if ( getElementModel ( vehicle ) == 522 ) then if ( getElementModel ( source ) == 0 ) then addPedClothes ( source, "moto", "moto", 16 ) setElementHealth( source, 100 ) outputChatBox ( "?#FFFFFFWelcome? To NGR-500 Race", source, 255, 0, 0, true ) end end end ) addEventHandler ( "onPlayerVehicleExit", root, function( vehicle ) if ( getElementModel ( vehicle ) == 522 ) then if ( getElementModel ( source ) == 0 ) then removePedClothes ( source, 16 ) end end end )
Saml1er Posted March 13, 2014 Posted March 13, 2014 Not sure but I think you're using wrong parameter. Replace theVehicle with vehicle.
charaf12 Posted March 13, 2014 Author Posted March 13, 2014 omg i wrong id car plzz delte topic or locked
Castillo Posted March 13, 2014 Posted March 13, 2014 Not sure but I think you're using wrong parameter. Replace theVehicle with vehicle. There's no "theVehicle" anywhere in his script.
iPrestege Posted March 13, 2014 Posted March 13, 2014 Not sure but I think you're using wrong parameter. Replace theVehicle with vehicle. There's no "theVehicle" anywhere in his script. + You're making no sense about changing the parameter name it will return for the value anyways.
iPrestege Posted March 14, 2014 Posted March 14, 2014 debugscript 3 Don't Work why !? You're not helping us to find the problem what you mean by debugscript 3 Didn't work?
Moderators Citizen Posted March 14, 2014 Moderators Posted March 14, 2014 debugscript 3 Don't Work why !? You need to /register then shutdown your server, then edit the acl to put your nickname into the admin group, then restart, /login and then /debugscript 3 will work)
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