Jump to content

vehiclefix


Savage

Recommended Posts

local fixer = createMarker(2064.396484375, -1831.638671875, 12, 'cylinder', 2.0, 255, 0, 0, 150) -- this going to create a marker

function tuto( player ) 
	local veh = getPedOccupiedVehicle(player) -- this going to detect the car
    fixVehicle(veh) --this going to repair the car
	playSoundFrontEnd ( player, 46 ) --Optional Argument ( this going to play a sound )
   end
addEventHandler( "onMarkerHit", fixer, tuto ) --this is the event

removeWorldModel(5422,1000,2071.8955078125, -1831.046875, 13.554534912109) --this is a optional argument but can be useful if you want garages like single player

 

Edited by <~KaMiKaZe~>
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...