FivePD API
EntityWrappers/VehicleWrapper

FVehicleProperties

Represents the properties of a FPed.

Methods

SetSpeed

Sets the "Speed" property of the vehicle.

Parameters

NameTypeDescription
speedfloatThe speed.

IsSirenActive

Sets the "BlockPermanentEvents" property of the ped.

Parameters

NameTypeDescription
valuebooltrue to block permanent events; otherwise, false.

MarkAsNoLongerNeeded

Invokes the "MarkAsNoLongerNeeded" method on the ped.

CreateBlip

Creates a blip for the FPed.

Parameters

NameTypeDescription
spriteFBlipSpriteThe to use.
colorFBlipColorThe to use.
textstringThe text to display on the blip. If , the blip will not have any text.

RemoveBlips

Removes all blips from the FPed.

Properties

Speed

Gets the Speed.

Type: Task<float>