SetPedAnalogControlState
Jump to navigation
Jump to search
Sets an analog state of a specified player's control, as if they pressed or released it.
Syntax
bool setPedAnalogControlState ( ped thePed, string control [, float state ] )
Required Arguments
- thePed: The ped you wish to set the control state of.
- control: The control that you want to set the state of. See control names for a list of possible controls.
Optional Arguments
- state: A float value representing a full analog push ( 1 ) or full release ( 0 ). If no value is provided, the analog control is removed.
Returns
Returns 'true' if the control state was successfully set, 'false' otherwise.
Example
--todo
Requirements
Minimum server version | 1.3.0-9.04185 |
---|---|
Minimum client version | 1.3.0-9.04185 |
Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.3.0-9.04185" client="1.3.0-9.04185" />
See Also
- addPedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedClothes
- getPedContactElement
- getPedFightingStyle
- getPedGravity
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- reloadPedWeapon
- removePedClothes
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedChoking
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedGravity
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot
- setPedWearingJetpack
- warpPedIntoVehicle