SpawnVehicle

Parameters Description

ParameterTypeDescriptionDefault

vehModel

string|integer

vehicle model

----

spawnPedInside

boolean?

spawn ped inside vehicle

false

saveVehicle

boolean?

if the ped was in other vehicle during the function execution, you can choose to keep the vehicle or remove it before creating the new one

false

Return:

  • integer?

Example

local veh = FPlayer:SpawnVehicle('futo', true)
SetVehicleNumberPlateText(veh, 'TestVehicle')

Last updated