Requests
Lightweight utility wrappers for native CFX request functions.
Accessing the Module
local REQUESTS <const> = exports.boii_utils:get("modules.requests")
Client
model(model)
Requests and loads a model.
Parameters
model
hash
Hash of the model to load
Example
REQUESTS.model(GetHashKey("prop_bench_01a"))
interior(interior)
Requests and loads an interior.
Parameters
interior
number
Interior ID to load
Example
REQUESTS.interior(GetInteriorAtCoords(435.5, -979.0, 30.0))
texture(texture, wait)
Requests and optionally waits for a texture dictionary to load.
Parameters
texture
string
Texture dictionary name
wait
boolean
Whether to wait for the load
Example
REQUESTS.texture("commonmenu", true)
collision(x, y, z)
Requests collision around a coordinate.
Parameters
x
number
X coordinate
y
number
Y coordinate
z
number
Z coordinate
Example
REQUESTS.collision(200.0, -1000.0, 30.0)
anim(dict)
Requests and loads an animation dictionary.
Parameters
dict
string
Animation dictionary name
Example
REQUESTS.anim("amb@world_human_bum_freeway@male@base")
anim_set(set)
Requests and loads an animation set.
Parameters
set
string
Animation set name
Example
REQUESTS.anim_set("move_m@business@a")
clip_set(clip)
Requests and loads an animation clip set.
Parameters
clip
string
Clip set name
Example
REQUESTS.clip_set("move_clipset@pistol")
audio_bank(audio)
Requests and loads a script audio bank.
Parameters
audio
string
Audio bank name
Example
REQUESTS.audio_bank("DLC_HEIST_HACKING_SNAKE_SOUNDS")
scaleform_movie(scaleform)
Requests and loads a scaleform movie.
Parameters
scaleform
string
Name of the scaleform
Returns
number
Handle to the scaleform
Example
local handle = REQUESTS.scaleform_movie("instructional_buttons")
cutscene(scene)
Requests and loads a cutscene.
Parameters
scene
string
Cutscene name
Example
REQUESTS.cutscene("mp_introduction")
ipl(str)
Requests and loads an IPL (map file).
Parameters
str
string
IPL name to load
Example
REQUESTS.ipl("hei_bi_hw1_13_door")
Last updated