ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setPedDoingGangDriveby

Function

setPedDoingGangDriveby

ServerPedsIdentical to MTA:SA

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.
valuebool
true = 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.

See also