Savage Posted January 6, 2018 Share Posted January 6, 2018 Hey all I need to know what command to add to markers script so that when they touch the marker, they repair the car Link to comment
KaMi Posted January 7, 2018 Share Posted January 7, 2018 (edited) 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 January 7, 2018 by <~KaMiKaZe~> 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