RO/getPedClothes
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
Această funcție este folosită pentru a vedea texturile hainelor si modelul de pe un ped ped.
Sintaxă
string, string getPedClothes ( ped thePed, int clothesType )
OOP Syntax Help! I don't understand this!
- Method: ped:getClothes(...)
 - Counterpart: addPedClothes
 
Argumente Necesare
- thePed: ped ale cărui haine vreți să le obțineți.
 - clothesType: Tipul/slot de îmbrăcăminte pe care doriți să-l obțineți.
 
Clothing Types
- 0: SHIRT
 - 1: HEAD
 - 2: TROUSERS
 - 3: SHOES
 - 4: TATTOOS_LEFT_UPPER_ARM
 - 5: TATTOOS_LEFT_LOWER_ARM
 - 6: TATTOOS_RIGHT_UPPER_ARM
 - 7: TATTOOS_RIGHT_LOWER_ARM
 - 8: TATTOOS_BACK
 - 9: TATTOOS_LEFT_CHEST
 - 10: TATTOOS_RIGHT_CHEST
 - 11: TATTOOS_STOMACH
 - 12: TATTOOS_LOWER_BACK
 - 13: NECKLACE
 - 14: WATCH
 - 15: GLASSES
 - 16: HAT
 - 17: EXTRA
 
Returnează
This function returns 2 strings, the clothes texture and model. The first return value will be false if this player's clothes type is empty or an invalid player was specified. Această funcție returnează 2 string-uri, textura hainelor si modelul. Prima valoare va returna false dacă hainele jucătorului(ped) nu există sau jucătorul(ped) este invalid.
Exemplu
Click to collapse [-]
ServerAcest exemplu printează modelul și textura curentă a hainelor jucătorului care scrie comanda "clothes". De exemplu: "clothes 3" pentru papuic.
function getClothes ( source, key, clothesType )
    local texture, model = getPedClothes ( source, clothesType )
    if ( texture and model ) then
        outputChatBox ( getPlayerName(source) .. " is wearing " .. texture .. " " .. model ..
                        " on his " .. getClothesTypeName(clothesType), source )
    else
        outputChatBox ( "Invalid input.", source )
    end
end
addCommandHandler ( "clothes", getClothes )
Vezi și
- addPedClothes
 - getPedClothes
 - removePedClothes
 - createPed
 - getPedAmmoInClip
 - getPedArmor
 - getPedFightingStyle
 - getPedOccupiedVehicle
 - getPedOccupiedVehicleSeat
 - getPedStat
 - getPedTarget
 - getPedTotalAmmo
 - getPedWalkingStyle
 - getPedWeapon
 - getPedWeaponSlot
 - getPedContactElement
 - getValidPedModels
 - isPedChoking
 - isPedDead
 - isPedDoingGangDriveby
 - isPedDucked
 - isPedHeadless
 - isPedInVehicle
 - isPedOnGround
 - isPedReloadingWeapon
 - isPedWearingJetpack
 - killPed
 - removePedFromVehicle
 - setPedAnimation
 - setPedAnimationProgress
 - setPedAnimationSpeed
 - setPedArmor
 - setPedDoingGangDriveby
 - setPedFightingStyle
 - setPedHeadless
 - setPedStat
 - setPedWalkingStyle
 - setPedWeaponSlot
 - warpPedIntoVehicle