Jump to content

[ Help ] Creating Dead Ped


Recommended Posts

I want to see the ped dead i don't know how help guys

Quote

local destinations =
{
    { 1214.44,-1499.03,9.04 };
    { 1126.23,-1180.19,31.02 };
    { 902.2,-897.19,44.76 };
    { 681.28,-1292.65,12.6 };
    { 613.25,-1377.53,12.87 };
    { 969.63,-1666.08,12.48 };
    { 1411.79,-1992.51,46.8 };
    { 1079.899,-1664.73,12.78 };
}

function unpackDestinations ()
    return unpack ( destinations [ math.random ( #destinations ) ] )
end

addEvent("HaveTruckerJob", true)
function createDestinations ()
    x, y, z = unpackDestinations ()
    Jobm = createMarker ( x, y, z, "cylinder", 1, 0, 200, 0, 85, localPlayer )
    Jobped = createPed(0,x, y, z,90 )
    truckerBlip = createBlipAttachedTo ( Jobm, 41 )
    setElementVisibleTo(truckerBlip, root, false)
setElementVisibleTo(truckerBlip, localPlayer, true)
killPed ( Jobped,localPlayer )
end
addEventHandler ( "HaveTruckerJob", root, createDestinations )

 

 

  • Haha 1
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...