Jump to content

-NgR-ped


charaf12

Recommended Posts

Posted

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 ) 

Posted
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.

  • Moderators
Posted
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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...