Jump to content

Create vehicle


-Doc-

Recommended Posts

What do you mean?

  
addCommandHandler("cv", function (player, _, arg1) 
   if tostring(arg1) then 
        veh = getVehicleModelFromName(arg1) 
               if veh then 
                   createVehicle(veh,unpack( {getElementPosition ( player ) } ) ) 
               else 
                   outputChatBox("wrong name", player) 
               end 
   else 
     if tonumber(arg1) then 
         createVehicle(arg1,unpack( {getElementPosition ( player ) } ) ) 
     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...