Skip to content

Spawn

Functions

Return Type Name
number spawn.vehicle(number\|string model, scr_vec3 coords, number heading, bool? register_as_network_object, bool? script_host_object, bool? ignore_ground_check)
number spawn.ped(number\|string model, scr_vec3 coords, number heading, bool? register_as_network_object, bool? script_host_object)
number spawn.object(number\|string model, scr_vec3 coords, bool? register_as_network_object, bool? script_host_object, bool? force_to_be_object)
number spawn.pickup(number\|string model, scr_vec3 coords, number flags, number amount, bool? create_as_script_object, bool? script_host_object)

Examples

-- Spawning a vehicle
local vehicle = spawn.vehicle('adder', scr_vec3(0, 0, 0), 0.0)
local vehicle = spawn.vehicle(0xb779a091, player.self().coords, player.self().heading)