Peds
Generating Peds is easy, the library also handles cleanup of the peds, should you wish to remove a ped, or you stop your script the ped will auto clean up.
HapticLib.CreatePed(pedid, ped, pedtype, coords, heading, freeze, invincible, temporaryevents, scenarioenable, scenario)
--[[
pedid = Unique Ped Identifier
ped = Ped Model
Ped Type = Doesnt really matter according to fivem docs
coords = Vector 3 of location
Heading = Direction to face
Freeze = true/false -- Do you want them frozen in place
invincible = true/false -- Doesnt die
temporaryevents = true/false -- Sets Blocking of Non Temporary Events
scenarioenable = true/false -- Do you want to do a scenario
scenario = Your Scenario--]]
You can clean up your ped by doing
HapticLib.RemovePed(UniquePedId)
Last updated