RU/setPedDoingGangDriveby
Jump to navigation
Jump to search
Эта функция устанавливает состояние "драйв-бай" для педа.
Syntax
bool setPedDoingGangDriveby ( ped thePed, bool state )
Required Arguments
- thePed: The ped element whose state is to be changed.
- state: A boolean value representing the drive-by state, true meaning enabled and false disabled.
Returns
Returns true if the driveby state could be changed, false otherwise.
Example
Click to collapse [-]
ClientThis example turns on driveby mode when the local player types driveby in the console.
function setDoingDriveby ( ) -- we check if local player isn't currently doing a gang driveby if not isPedDoingGangDriveby ( getLocalPlayer () ) then -- if he got driveby mode off, turn it on setPedWeaponSlot ( getLocalPlayer (), 4 ) setPedDoingGangDriveby ( getLocalPlayer (), true ) else -- otherwise, turn it off setPedWeaponSlot ( getLocalPlayer (), 0 ) setPedDoingGangDriveby ( getLocalPlayer (), false ) end end addCommandHandler ( "driveby", setDoingDriveby )
Смотрите также
- addPedClothes
- createPed
- doesPedHaveJetPack
- getPedAmmoInClip
- getPedArmor
- getPedClothes
- getPedContactElement
- getPedFightingStyle
- getPedGravity
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getValidPedModels
- givePedJetPack
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedFrozen
- isPedHeadless
- isPedInVehicle
- isPedInWater
- isPedOnFire
- isPedOnGround
- killPed
- reloadPedWeapon
- removePedClothes
- removePedFromVehicle
- removePedJetPack
- setPedAnimation
- setPedAnimationProgress
- setPedAnalogControlState
- setPedArmor
- setPedChoking
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedFrozen
- setPedGravity
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWeaponSlot