Jump to content

-NgR-ped


charaf12

Recommended Posts

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

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