Make Functions
makeBlip.lua
This module provides simple utilities for adding static or entity-based blips to the minimap.
makeBlip(data)
This function adds a map blip at the provided coordinates and sets various display properties such as sprite, color, scale, and more.
It also handles attaching a preview image to the blip if certain resources are running and a preview is provided.
Example:
makeEntityBlip(data)
This function adds a map blip attached to the provided entity and sets various display properties such as sprite, color, scale, and more.
It also handles attaching a preview image to the blip if certain resources are running and a preview is provided.
Example:
makePed.lua
This module provides tools to create persistent or distance-based NPCs with optional animations, scenarios, and config randomization.
makeDistPed(data, coords, freeze, collision, scenario, anim, synced)
Creates a ped that only spawns when nearby (performance optimization).
Example:
makePed(data, coords, freeze, collision, scenario, anim, synced)
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.
Example:
deleteVehicle(vehicle)
Deletes a specified vehicle entity.
Example:
Last updated