Kas7 Posted July 1, 2020 Share Posted July 1, 2020 I want to make a boot that will chase me when I touch a specific marker. Can anyone help me!!? Link to comment
Hydra Posted July 2, 2020 Share Posted July 2, 2020 setPedControlState or setPedAnalogControlState Link to comment
Kas7 Posted July 2, 2020 Author Share Posted July 2, 2020 can u help me in this code To implement the idea local Marker1 = createMarker(-82.43913, -907.21539, 17.27800 ,"cylinder", 2, 0, 0, 255, 255) addEventHandler("onMarkerHit",Marker1, function (hitElement,matchingDimension) local policePed = createPed (280, -148.21268, -959.39343, 28.35586) local PoliceCar = createVehicle(597, -148.21268, -959.39343, 28.35586, 359.447, 0.000, 90) warpPedIntoVehicle ( policePed, PoliceCar) end ) Link to comment
Hydra Posted July 3, 2020 Share Posted July 3, 2020 local Marker1 = createMarker(-82.43913, -907.21539, 17.27800 ,"cylinder", 2, 0, 0, 255, 255) addEventHandler("onMarkerHit",Marker1, function (hitElement,matchingDimension) local policePed = createPed (280, -148.21268, -959.39343, 28.35586) local PoliceCar = createVehicle(597, -148.21268, -959.39343, 28.35586, 359.447, 0.000, 90) warpPedIntoVehicle ( policePed, PoliceCar) setPedAnalogControlState(policePed, "accelerate", 1) end ) Link to comment
Kas7 Posted July 3, 2020 Author Share Posted July 3, 2020 1 hour ago, Hydra said: local Marker1 = createMarker(-82.43913, -907.21539, 17.27800 ,"cylinder", 2, 0, 0, 255, 255) addEventHandler("onMarkerHit",Marker1, function (hitElement,matchingDimension) local policePed = createPed (280, -148.21268, -959.39343, 28.35586) local PoliceCar = createVehicle(597, -148.21268, -959.39343, 28.35586, 359.447, 0.000, 90) warpPedIntoVehicle ( policePed, PoliceCar) setPedAnalogControlState(policePed, "accelerate", 1) end ) I tried this method But I want the house to chase the player can you help me Link to comment
Hydra Posted July 3, 2020 Share Posted July 3, 2020 You need to use vehicle nodes. Take a look at this posts: 1 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