Utility Functions [ESX,QB]
Utility Functions [ESX,QB]
Features
- Require: Emulates Lua’s default require function, using package.path, package.preload and package.loaded. Also precaches all modules labled as
file in the
fxmanifest.lua and any modules that are imported using the
require function.
- Array: A class for the creation and manipulation of consecutive integer indexed arrays, providing a number of Functional Programming methods.
- Bridge: Provides common functions between different frameworks and libraries for use in creating cross-framework scripts.
- Locale: Contains functions for localisation and translation, based on the i18n.lua library by kikito.
- Math: Contains some useful math functions, including a
seedrng function which generates a random seed based on the current time, and an improvement to the default lua
random function.
- Vector: Contains some useful vector functions, including a
getclosest function which finds the closest vector3 in an array to a given vector3.
- Blips: Contains functions for managing blips, including
getall,
onscreen,
bycoords,
bysprite,
bytype,
getinfo and
remove.
- Pools: Contains functions for managing entity pools, including
getpeds,
getvehicles,
getobjects,
getpickups,
getclosestped,
getclosestvehicle,
getclosestobject and
getclosestpickup.
- Streaming: Contains functions for managing streaming, including
loadanimdict,
loadanimset,
loadcollision,
loadipl,
loadmodel and
loadptfx.
- Scope: Contains functions for managing scope, including
getplayerscope,
triggerscopeevent,
createsyncedscopeevent and
removesyncedscopeevent.
- Zone: Contains functions for management of map zones similar to PolyZone but is server-side only, including
contains,
getzone,
getzonename,
getzoneindex,
addzoneevent and
removezoneevent.
- Preview Coming Soon
Also, Check more esx scripts and qbcore scripts
Reviews
There are no reviews yet.