EquipPlayerWeaponSlot: Difference between revisions
From Onset Developer Wiki
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player|The player identifier.}} | {{FuncParam|player|The player identifier.}} | ||
{{FuncParam|weaponslot|The weapon slot (range | {{FuncParam|weaponslot|The weapon slot (range 1 - 3)}} | ||
{{FuncReturnValue|This function returns ''true''' on success.}} | {{FuncReturnValue|This function returns ''true''' on success.}} | ||
Line 17: | Line 17: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{ServerPlayerFunctions}} |
Latest revision as of 11:03, 2 September 2020
Description
Equip the specified weapon slot for the specified player.
Syntax
EquipPlayerWeaponSlot(player, weaponslot)
Parameters
- player
The player identifier. - weaponslot
The weapon slot (range 1 - 3)
Return Value
- This function returns true' on success.
Example
EquipPlayerWeaponSlot(playerId, 1)
See also
- GetPlayerBySteamId
- SetPlayerRagdoll
- SetPlayerDimension
- GetPlayerDimension
- SetPlayerPropertyValue
- GetPlayerPropertyValue
- IsValidPlayer
- GetPlayerCount
- GetAllPlayers
- GetNearestPlayer2D
- GetPlayersInRange2D
- GetPlayersInRange3D
- GetStreamedPlayersForPlayer
- SetPlayerName
- GetPlayerName
- GetPlayerSteamId
- GetPlayerNetworkStats
- SetPlayerSpawnLocation
- IsPlayerStreamedIn
- SetPlayerVoiceRange
- SetPlayerVoiceChannel
- IsPlayerVoiceChannel
- SetPlayerVoiceEnabled
- IsPlayerVoiceEnabled
- IsPlayerTalking
- AddPlayerChat
- AddPlayerChatRange
- AddPlayerChatAll
- GetPlayerState
- GetPlayerMovementMode
- GetPlayerMovementSpeed
- IsPlayerAiming
- IsPlayerReloading
- GetPlayerVehicle
- GetPlayerVehicleSeat
- SetPlayerInVehicle
- RemovePlayerFromVehicle
- SetPlayerLocation
- GetPlayerLocation
- SetPlayerWeaponStat
- SetPlayerWeapon
- GetPlayerWeapon
- GetPlayerEquippedWeaponSlot
- EquipPlayerWeaponSlot
- GetPlayerEquippedWeapon
- SetPlayerHeading
- GetPlayerHeading
- SetPlayerSpectate
- IsPlayerDead
- SetPlayerHealth
- GetPlayerHealth
- SetPlayerArmor
- GetPlayerArmor
- SetPlayerRespawnTime
- GetPlayerRespawnTime
- GetPlayerIP
- GetPlayerPing
- KickPlayer
- GetPlayerLocale
- GetPlayerGUID
- GetPlayerGameVersion
- SetPlayerAnimation
- AttachPlayerParachute
- SetPlayerHeadSize
- GetPlayerHeadSize