HU/getPedMoveState: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client function hu}} __NOTOC__ This function returns the current move state for the specified ped. ==Szintaxis== <syntaxhighlight lang="lua"> string getPedMoveState ( p...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid. | Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid. | ||
{{Ped move states}} | {{Ped move states hu}} | ||
==Példa== | ==Példa== | ||
Line 39: | Line 39: | ||
==Lásd még== | ==Lásd még== | ||
{{Ped functions}} | {{Ped functions hu}} | ||
[[en:getPedMoveState]] | [[en:getPedMoveState]] |
Latest revision as of 17:53, 8 October 2018
This function returns the current move state for the specified ped.
Szintaxis
string getPedMoveState ( ped thePed )
Kötelező paraméterek
- thePed: The ped whose move state you want to know
Visszatérési érték
Returns a string indicating the ped's move state, or false if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.
- stand: A ped egyhelyben áll.
- walk: A ped sétál.
- powerwalk: A ped gyorsan sétál.
- jog: A ped kocok.
- sprint: A ped fut.
- crouch: A ped guggol.
- crawl: A ped kúszik.
- jump: A ped felugrik.
- fall: A ped zuhan.
- climb: A ped felmászik egy objectre.
Példa
Click to collapse [-]
Example 1: This example shows how you can output a players current movestate.
function getMoveState( command, playerName ) -- If the player name exists we will have our 'player' local player = getPlayerFromName( playerName ) -- If the player does not exist, the script will stop. if not player then outputChatBox( "No player named " .. playerName .. " was found.", 250, 0, 0, true ) return false end -- If we found the player from the name, we can get his movestate. local moveState = getPedMoveState( player ) -- If a player and a movestate is found, the script will output it to the chatbox. outputChatBox( playerName .. "'s current moveState is: " .. moveState, 0, 150, 0, true ) end addCommandHandler( "getMoveState", getMoveState ) -- To execute this command, simply write: /getMoveState playerName
Lásd még
- HU/addPedClothes
- HU/createPed
- HU/getPedAmmoInClip
- HU/getPedArmor
- HU/getPedClothes
- HU/getPedContactElement
- HU/getPedFightingStyle
- HU/getPedGravity
- HU/getPedOccupiedVehicle
- HU/getPedOccupiedVehicleSeat
- HU/getPedStat
- HU/getPedTarget
- HU/getPedTotalAmmo
- HU/getPedWalkingStyle
- HU/getPedWeapon
- HU/getPedWeaponSlot
- HU/getValidPedModels
- HU/isPedChoking
- HU/isPedDead
- HU/isPedDoingGangDriveby
- HU/isPedDucked
- HU/isPedFrozen
- HU/isPedHeadless
- HU/isPedInVehicle
- HU/isPedOnFire
- HU/isPedOnGround
- HU/isPedWearingJetpack
- HU/killPed
- HU/reloadPedWeapon
- HU/removePedClothes
- HU/removePedFromVehicle
- HU/setPedAnimation
- HU/setPedAnimationProgress
- HU/setPedAnimationSpeed
- HU/setPedArmor
- HU/setPedChoking
- HU/setPedDoingGangDriveby
- HU/setPedFightingStyle
- HU/setPedGravity
- HU/setPedHeadless
- HU/setPedOnFire
- HU/setPedStat
- HU/setPedWalkingStyle
- HU/setPedWeaponSlot
- HU/setPedWearingJetpack
- HU/warpPedIntoVehicle