M MY Multiplayer: Wiki
Side
Kind

setPedCanBeKnockedOffBike

Client

Sets whether a ped can be knocked off a bike or motorbike in a crash.

bool setPedCanBeKnockedOffBike(ped ped, bool canBeKnockedOff)

Parameters

NameTypeDescription
pedpedThe ped. It also applies to the element's children.
canBeKnockedOffboolfalse so the ped never falls off.

Returns

true if it was applied to the element. false if it is not a ped, or is a player other than the local one.

Example

setPedCanBeKnockedOffBike(localPlayer, false)

See also