Jump to content

Help with a simple idea


Kas7

Recommended Posts

can u help me in this code To implement the idea
 

  1. local   Marker1 =   createMarker(-82.43913, -907.21539, 17.27800 ,"cylinder", 2, 0, 0, 255, 255)
  2.  
  3.  
  4.  
  5. addEventHandler("onMarkerHit",Marker1,
  6. function (hitElement,matchingDimension)
  7.     local policePed = createPed (280, -148.21268, -959.39343, 28.35586)
  8.     local PoliceCar = createVehicle(597, -148.21268, -959.39343, 28.35586, 359.447, 0.000, 90)
  9.     warpPedIntoVehicle ( policePed, PoliceCar)
  10.  
  11. end
  12. )
Link to comment
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
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

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