setPedCanBeKnockedOffBike
Client
Sets whether a ped can be knocked off a bike or motorbike in a crash.
bool setPedCanBeKnockedOffBike(ped ped, bool canBeKnockedOff)
Parameters
| Name | Type | Description |
|---|---|---|
| ped | ped | The ped. It also applies to the element's children. |
| canBeKnockedOff | bool | false 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)