MoeezKhan Posted February 13, 2014 Share Posted February 13, 2014 hi all i make a car spawn system on marker anybody tell me how i can add function so player can spawn it own vehicle Thanks in Advance Link to comment
Anubhav Posted February 13, 2014 Share Posted February 13, 2014 createVehicle addCommandHandler -- to type /commandName VehID Link to comment
Snow-Man Posted February 13, 2014 Share Posted February 13, 2014 If you wanna make When you Type /Spawn car will Create Behind you use getElementPosition Link to comment
Gtagasje Posted February 13, 2014 Share Posted February 13, 2014 I'm guessing you want to spawn a vehicle once the player hits a marker? createVehicle() warpPedIntoVehicle() "onMarkerHit" -- Event Link to comment
cheez3d Posted February 13, 2014 Share Posted February 13, 2014 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) Link to comment
MoeezKhan Posted February 13, 2014 Author Share Posted February 13, 2014 Thanks you all but can you tell more thing player can spawn it own vehicle (Example:-Which Player buy vehicle Player can spawn it Link to comment
Moderators Citizen Posted February 13, 2014 Moderators Share Posted February 13, 2014 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 Link to comment
MoeezKhan Posted February 13, 2014 Author Share Posted February 13, 2014 if you dont understand not post here Link to comment
Moderators Citizen Posted February 13, 2014 Moderators Share Posted February 13, 2014 If you can not write in a proper english, do not post in this section. What is wrong asking in your regional forum ?? 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