Spawns a ped with more persistent behavior at the given location.
Supports animation playback and freezing.
Example:
GenerateRandomPedData(data)
Returns randomized ped model/configuration based on input table.
Useful for dynamic NPC generation.
Example:
makeProp.lua
This module allows you to spawn static or distance-loaded props in the world.
makeProp(data, freeze, synced)
This function loads the model, creates the object, sets its heading, and freezes it if specified.Example:
makeDistProp(data, freeze, synced, range)
Same as makeProp, but only spawns if the player is within the specified range.
Example:
destroyProp(entity)
Removes a previously created or targeted prop from the world.
Example:
makeVeh.lua
This module provides functionality for spawning vehicles, including distance-based optimization and entity management.
makeVeh(model, coords)
This function loads the vehicle model, creates the vehicle in the world at the given coordinates, sets initial properties, and returns the vehicle handle.
Example:
makeDistVehicle(data, radius, onEnter, onExit)
Creates a vehicle that spawns when the player enters a designated polyzone area.
This is used for jim-parking to create a static vehicle that can't move
Example:
removeDistVehicleZone(zoneId)
Removes a previously created distance-based vehicle zone.