- Documentation
- Server functions
- setPedDoingGangDriveby
Function
setPedDoingGangDriveby
Stores whether a ped should be shooting from a vehicle window (drive-by). In Trilogy Hub this is state for scripts returned by isPedDoingGangDriveby; the game does not switch the ped into drive-by mode based on it.
Syntax
bool setPedDoingGangDriveby(ped ped, bool value)Arguments
pedped- A player or an NPC.
valuebooltrue= doing a drive-by.
Returns
true on success.
Example
setPedDoingGangDriveby(player, true)
Notes
State for scripts. The game does not change the ped's behaviour.