SetPedExitVehicle: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
{{ | {{Added feature/item|3.0159|1.5.9|1.5.8|20740|This function makes a [[ped]] exit a [[vehicle]], similar to the enter_exit control state.}} | ||
{{Note|For this function to work on peds, the server and all clients are required to be on version '''1.5.8 r20740''' or newer.}} | {{Note|For this function to work on peds, the server and all clients are required to be on version '''1.5.8 r20740''' or newer.}} | ||
{{Note|This function only works on synced peds and vehicles ( | {{Note|This function only works on synced peds and vehicles (i.e. created serverside).}} | ||
==Syntax== | ==Syntax== | ||
Line 28: | Line 28: | ||
==Example== | ==Example== | ||
{{Needs Example}} | {{Needs Example}} | ||
==Requirements== | |||
{{Requirements|1.5.8-9.20740|1.5.8-9.20740}} | |||
==See Also== | ==See Also== | ||
{{Client ped functions}} | {{Client ped functions}} |
Revision as of 09:47, 20 September 2021
20740
Note: For this function to work on peds, the server and all clients are required to be on version 1.5.8 r20740 or newer. |
Note: This function only works on synced peds and vehicles (i.e. created serverside). |
Syntax
bool setPedExitVehicle ( ped thePed )
Required Arguments
Returns
Returns true if the function was successful, false otherwise.
When this function returns true, the client will ask server for permission to exit a vehicle. Exiting can still fail in the following cases
- The function is used on a ped, but another client is not on version 1.5.8 r20740 or newer.
This function returns false in the following cases
- Invalid arguments were parsed.
- The function is used on a ped but the server is not on version 1.5.8 r20740 or newer.
- Time passed since last enter/exit for this ped is less than 1500 ms.
- The ped is getting jacked.
Example
![]() |
Script Example Missing Function SetPedExitVehicle needs a script example, help out by writing one. |
Before submitting check out Editing Guidelines Script Examples. |
Requirements
Minimum server version | 1.5.8-9.20740 |
---|---|
Minimum client version | 1.5.8-9.20740 |
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.5.8-9.20740" client="1.5.8-9.20740" />
See Also
- canPedBeKnockedOffBike
- getPedAnalogControlState
- getPedAnimation
- getPedBonePosition
- getPedCameraRotation
- getPedControlState
- getPedMoveState
- getPedOxygenLevel
- getPedSimplestTask
- getPedTargetCollision
- getPedTargetEnd
- getPedTargetStart
- getPedTask
- getPedVoice
- getPedWeaponMuzzlePosition
- givePedWeapon
- isPedBleeding
- isPedDoingTask
- isPedReloadingWeapon
- isPedTargetingMarkerEnabled
- setAnalogControlState
- setPedAimTarget
- setPedAnalogControlState
- setPedBleeding
- setPedCameraRotation
- setPedCanBeKnockedOffBike
- setPedControlState
- setPedEnterVehicle
- setPedExitVehicle
- IsPedFootBloodEnabled
- setPedFootBloodEnabled
- setPedLookAt
- setPedOxygenLevel
- setPedTargetingMarkerEnabled
- setPedVoice
Shared
- addPedClothes
- getPedClothes
- removePedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedFightingStyle
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getPedContactElement
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot
- warpPedIntoVehicle