Jump to content

car spawn help


MoeezKhan

Recommended Posts

Posted
  
addCommandHandler("cvm",function(_,player) 
    local x,y,z = getElementPosition(player) 
    local marker = createMarker(x,y,z+5) 
    addEventHandler("onMarkerHit",marker,function(element,dimension) 
    if getElementType(element) == "player" and dimension then 
        local x,y,z = getElementPosition(element) 
        local vehicle = createVehicle(432,x,y,z) 
        if vehicle then 
            warpPedIntoVehicle(element,vehicle,0) 
            outputChatBox(getVehicleName(vehicle).." spawned!",element) 
        end 
    end 
    end) 
end) 
  

  • Moderators
Posted

First, I don't understand your latest post.

Second, you should ask in your regional forum first.

Third, it looks like we (the MTA forum mumbers) are making your whole gamemode/server.

Fourth, why using SAUR in your server name ? Try to do your own stuff and learn a minimum please.

By following the tutorials on the wiki, you should be able to do that stuff yourself.

Regards,

Citizen

  • Moderators
Posted

If you can not write in a proper english, do not post in this section.

What is wrong asking in your regional forum ??

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