charaf12 Posted March 13, 2014 Share 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 ) Link to comment
Castillo Posted March 13, 2014 Share Posted March 13, 2014 I don't see anything wrong with it. Link to comment
Saml1er Posted March 13, 2014 Share Posted March 13, 2014 Not sure but I think you're using wrong parameter. Replace theVehicle with vehicle. Link to comment
charaf12 Posted March 13, 2014 Author Share Posted March 13, 2014 omg i wrong id car plzz delte topic or locked Link to comment
Castillo Posted March 13, 2014 Share 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. Link to comment
iPrestege Posted March 13, 2014 Share 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. Link to comment
charaf12 Posted March 13, 2014 Author Share Posted March 13, 2014 debugscript 3 Don't Work why !? Link to comment
iPrestege Posted March 14, 2014 Share 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? Link to comment
Moderators Citizen Posted March 14, 2014 Moderators Share 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) 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