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 thefxmanifest.lua and any modules that are imported using therequire 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 luarandom 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 andremove. - Pools: Contains functions for managing entity pools, including
getpeds,getvehicles,getobjects,getpickups,getclosestped,getclosestvehicle,getclosestobject andgetclosestpickup. - Streaming: Contains functions for managing streaming, including
loadanimdict,loadanimset,loadcollision,loadipl,loadmodel andloadptfx. - Scope: Contains functions for managing scope, including
getplayerscope,triggerscopeevent,createsyncedscopeevent andremovesyncedscopeevent. - Zone: Contains functions for management of map zones similar to PolyZone but is server-side only, including
contains,getzone,getzonename,getzoneindex,addzoneevent andremovezoneevent.
- Preview Coming Soon
Also, Check more esx scripts and qbcore scripts

Reviews
There are no reviews yet.