PLAYER
170 natives, 90 of them described.
- ADD_SCOREAddScore
Not described yet
- ALLOW_LOCKON_TO_FRIENDLY_PLAYERSAllowLockonToFriendlyPlayers
Multiplayer only, this explicitly allows player vs friendly player lockons in a network game: By default its disabled.
- ALLOW_LOCKON_TO_RANDOM_PEDSAllowLockonToRandomPeds
Not described yet
- ALLOW_PLAYER_TO_CARRY_NON_MISSION_OBJECTSAllowPlayerToCarryNonMissionObjects
Not described yet
- ALTER_WANTED_LEVELAlterWantedLevel
Sets the wanted level for the player.
- ALTER_WANTED_LEVEL_NO_DROPAlterWantedLevelNoDrop
Sets the wanted level only if its higher than the current.
- APPLY_WANTED_LEVEL_CHANGE_NOWApplyWantedLevelChangeNow
Sets the wanted level for the player immediately.
- AWARD_ACHIEVEMENTAwardAchievement
Award an achievement to the main player.
- BLOCK_STATS_MENU_ACTIONSBlockStatsMenuActions
Not described yet
- CAN_PLAYER_START_MISSIONCanPlayerStartMission
Returns TRUE if it is safe for the player to start a mission.
- CHANGE_PLAYER_MODELChangePlayerModel
Changes the model for the player.
- CHANGE_PLAYER_PHONE_MODELChangePlayerPhoneModel
Not described yet
- CHANGE_PLAYER_PHONE_MODEL_OFFSETSChangePlayerPhoneModelOffsets
Not described yet
- CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_PEDClearPlayerHasDamagedAtLeastOnePed
Call this once before you start checking HAS_PLAYER_DAMAGED_AT_LEAST_ONE_PED.
- CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_VEHICLEClearPlayerHasDamagedAtLeastOneVehicle
Call this once before you start checking HAS_PLAYER_DAMAGED_AT_LEAST_ONE_VEHICLE.
- CLEAR_WANTED_LEVELClearWantedLevel
Clears the players wanted level immediately.
- CONVERT_INT_TO_PLAYERINDEXConvertIntToPlayerindex
Converts an int to a player index.
- CREATE_PLAYERCreatePlayer
Creates a player at the given coordinates.
- DELETE_PLAYERDeletePlayer
Not described yet
- DISABLE_PLAYER_LOCKONDisablePlayerLockon
Set lockon active state for mulitplayer games.
- DISABLE_PLAYER_SPRINTDisablePlayerSprint
Sets if the player can sprint.
- DISABLE_PLAYER_VEHICLE_ENTRYDisablePlayerVehicleEntry
Not described yet
- DO_WEAPON_STUFF_AT_START_OF_2P_GAMEDoWeaponStuffAtStartOf2pGame
Not described yet
- DONT_DISPATCH_COPS_FOR_PLAYERDontDispatchCopsForPlayer
Sets if the cops will be dispatched for the player.
- FAKE_DEATHARRESTFakeDeatharrest
Not described yet
- FORCE_AIR_DRAG_MULT_FOR_PLAYERS_CARForceAirDragMultForPlayersCar
Force higher air drag mult on any car or bike the player uses until the mission ends or this command is called again with 1.0, fDragMult range 1.0 - 15.0 (5.0 is standard for high air resistance zones
- FORCE_INTERIOR_LIGHTING_FOR_PLAYERForceInteriorLightingForPlayer
Not described yet
- FORCE_NET_PLAYER_INVISIBLEForceNetPlayerInvisible
Not described yet
- GET_LEFT_PLAYER_CASH_TO_REACH_LEVELGetLeftPlayerCashToReachLevel
Returns how much cash is required to level up.
- GET_LOCAL_PLAYER_MP_CASHGetLocalPlayerMpCash
Return the player total cash earned in all ranked multiplayer games.
- GET_LOCAL_PLAYER_WEAPON_STATGetLocalPlayerWeaponStat
Not described yet
- GET_MAX_WANTED_LEVELGetMaxWantedLevel
Gets the players max wanted level.
- GET_NEEDED_PLAYER_CASH_FOR_LEVELGetNeededPlayerCashForLevel
Not described yet
- GET_NO_LAW_VEHICLES_DESTROYED_BY_LOCAL_PLAYERGetNoLawVehiclesDestroyedByLocalPlayer
Not described yet
- GET_NO_OF_PLAYERS_IN_TEAMGetNoOfPlayersInTeam
Get the number of players in a team.
- GET_NUM_OF_MODELS_KILLED_BY_PLAYERGetNumOfModelsKilledByPlayer
Not described yet
- GET_NUMBER_OF_PLAYERSGetNumberOfPlayers
Gets the number of players.
- GET_PLAYER_CHARGetPlayerChar
Gets the char index from the players index.
- GET_PLAYER_COLOURGetPlayerColour
Not described yet
- GET_PLAYER_GROUPGetPlayerGroup
Gets the players group.
- GET_PLAYER_IDGetPlayerId
Gets the player index for the main player.
- GET_PLAYER_ID_FOR_THIS_PEDGetPlayerIdForThisPed
Returns the player index of a player whos ped is the one with the given ped index.
- GET_PLAYER_MAX_ARMOURGetPlayerMaxArmour
Gets the players max armour value.
- GET_PLAYER_MAX_HEALTHGetPlayerMaxHealth
Gets the players max armour value.
- GET_PLAYER_NAMEGetPlayerName
Returns the name of the player.
- GET_PLAYER_RGB_COLOURGetPlayerRgbColour
Gets the RGB colour of the player.
- GET_PLAYER_TEAMGetPlayerTeam
Gets the team the player is in.
- GET_PLAYER_WANTED_LEVEL_INCREMENTGetPlayerWantedLevelIncrement
Not described yet
- GET_PLAYERS_LAST_CAR_NO_SAVEGetPlayersLastCarNoSave
Returns the last car that the player has been in.
- GET_PLAYERSETTINGS_MODEL_CHOICEGetPlayersettingsModelChoice
Returns the model hash of the multiplayer character chosen in the game profile of this client (M_Y_MULTIPLAYER or F_Y_MULTIPLAYER).
- GET_REMOTE_CONTROLLED_CARGetRemoteControlledCar
Not described yet
- GET_TIME_SINCE_LAST_ARRESTGetTimeSinceLastArrest
Returns the time in milliseconds since the player was arrested and got respawned outside a police station.
- GET_TIME_SINCE_LAST_DEATHGetTimeSinceLastDeath
Returns the time in milliseconds since the player died.
- GET_TIME_SINCE_PLAYER_DROVE_AGAINST_TRAFFICGetTimeSincePlayerDroveAgainstTraffic
Returns (in milliseconds) how long ago the player last drove against the flow of traffic.
- GET_TIME_SINCE_PLAYER_DROVE_ON_PAVEMENTGetTimeSincePlayerDroveOnPavement
Returns (in milliseconds) how long ago the player drove on the pavement.
- GET_TIME_SINCE_PLAYER_HIT_BUILDINGGetTimeSincePlayerHitBuilding
Returns (in milliseconds) how long ago the player (in a car) last hit a building.
- GET_TIME_SINCE_PLAYER_HIT_CARGetTimeSincePlayerHitCar
Return (in milliseconds) how long ago the player (in a car) last hit a car.
- GET_TIME_SINCE_PLAYER_HIT_OBJECTGetTimeSincePlayerHitObject
Returns (in milliseconds) how long ago the player (in a car) last hit a object.
- GET_TIME_SINCE_PLAYER_HIT_PEDGetTimeSincePlayerHitPed
Returns (in milliseconds) how long ago the player (in a car) last hit a ped.
- GET_TIME_SINCE_PLAYER_RAN_LIGHTGetTimeSincePlayerRanLight
Returns (in milliseconds) how long ago the player last ran a red light.
- GET_TRAIN_PLAYER_WOULD_ENTERGetTrainPlayerWouldEnter
Gets the train the player would like to enter.
- GET_VEHICLE_PLAYER_WOULD_ENTERGetVehiclePlayerWouldEnter
Gets the vehicle the player would like to enter.
- GIVE_PLAYER_HELMETGivePlayerHelmet
Puts a helmet on the character of the player, like GIVE_PED_HELMET.
- GIVE_PLAYER_RAGDOLL_CONTROLGivePlayerRagdollControl
Gives the player control of the ragdoll.
- GIVE_REMOTE_CONTROLLED_MODEL_TO_PLAYERGiveRemoteControlledModelToPlayer
Not described yet
- HAS_ACHIEVEMENT_BEEN_PASSEDHasAchievementBeenPassed
Verify if an achievement has been completed.
- HAS_DEATHARREST_EXECUTEDHasDeatharrestExecuted
Not described yet
- HAS_GAMER_CHANGED_NETWORK_MODEL_SETTINGSHasGamerChangedNetworkModelSettings
Not described yet
- HAS_PLAYER_DAMAGED_AT_LEAST_ONE_PEDHasPlayerDamagedAtLeastOnePed
Returns TRUE if the player has damaged any peds since the last time that CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_PED was called.
- HAS_PLAYER_DAMAGED_AT_LEAST_ONE_VEHICLEHasPlayerDamagedAtLeastOneVehicle
Returns TRUE if the player has damaged any vehicles since the last time that CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_VEHICLE was called.
- HAS_PLAYER_RANK_BEEN_UPGRADEDHasPlayerRankBeenUpgraded
Not described yet
- INCREASE_PLAYER_MAX_ARMOURIncreasePlayerMaxArmour
Not described yet
- INCREASE_PLAYER_MAX_HEALTHIncreasePlayerMaxHealth
Not described yet
- IS_2PLAYER_GAME_GOING_ONIs2playerGameGoingOn
Not described yet
- IS_ATTACHED_PLAYER_HEADING_ACHIEVEDIsAttachedPlayerHeadingAchieved
Not described yet
- IS_IN_LAN_MODEIsInLanMode
Not described yet
- IS_IN_PLAYER_SETTINGS_MENUIsInPlayerSettingsMenu
Not described yet
- IS_PLAYER_CLIMBINGIsPlayerClimbing
Checks if the player is climbing.
- IS_PLAYER_CONTROL_ONIsPlayerControlOn
Checks if the players control is on.
- IS_PLAYER_DEADIsPlayerDead
Returns TRUE if the given player is dead.
- IS_PLAYER_FREE_AIMING_AT_CHARIsPlayerFreeAimingAtChar
Returns TRUE if the player is pointing his weapon at the specified character.
- IS_PLAYER_FREE_FOR_AMBIENT_TASKIsPlayerFreeForAmbientTask
Returns TRUE if the player is currently not in combat, climbing, jumping or firing a gun.
- IS_PLAYER_IN_INFO_ZONEIsPlayerInInfoZone
Not described yet
- IS_PLAYER_IN_REMOTE_MODEIsPlayerInRemoteMode
Not described yet
- IS_PLAYER_IN_SHORTCUT_TAXIIsPlayerInShortcutTaxi
Not described yet
- IS_PLAYER_LOGGING_IN_NPIsPlayerLoggingInNp
Returns true if the player is logging in to Sony NP.
- IS_PLAYER_ONLINEIsPlayerOnline
Returns true if the player is online - implies he is also signed in locally.
- IS_PLAYER_ONLINE_GAMESPYIsPlayerOnlineGamespy
Returns true if the player is online wrt Gamespy - implies he is also signed in locally.
- IS_PLAYER_ONLINE_NPIsPlayerOnlineNp
Returns true if the player is online wrt Sony NP - implies he is also signed in locally.
- IS_PLAYER_PERFORMING_STOPPIEIsPlayerPerformingStoppie
Not described yet
- IS_PLAYER_PERFORMING_WHEELIEIsPlayerPerformingWheelie
Not described yet
- IS_PLAYER_PLAYINGIsPlayerPlaying
Returns TRUE if the player is in control.
- IS_PLAYER_PRESSING_HORNIsPlayerPressingHorn
Returns TRUE if the specified Player is in a car and is pressing the Horn button.
- IS_PLAYER_READY_FOR_CUTSCENEIsPlayerReadyForCutscene
Returns if the player is in a safe state to trigger a cutscene.
- IS_PLAYER_SCRIPT_CONTROL_ONIsPlayerScriptControlOn
Returns FALSE if the player control has been turned off by a script.
- IS_PLAYER_SIGNED_IN_LOCALLYIsPlayerSignedInLocally
Not described yet
- IS_PLAYER_TARGETTING_ANYTHINGIsPlayerTargettingAnything
Returns TRUE if the player is pointing his weapon at any entity.
- IS_PLAYER_TARGETTING_CHARIsPlayerTargettingChar
Returns TRUE if the player is pointing his weapon at the specified character.
- IS_PLAYER_TARGETTING_OBJECTIsPlayerTargettingObject
Returns TRUE if the player is pointing his weapon at the specified object.
- IS_PLAYER_VEHICLE_ENTRY_DISABLEDIsPlayerVehicleEntryDisabled
Not described yet
- IS_SCORE_GREATERIsScoreGreater
Not described yet
- IS_SYSTEM_UI_SHOWINGIsSystemUiShowing
Returns true is a system UI (e.g.
- IS_THIS_PED_A_PLAYERIsThisPedAPlayer
Not described yet
- IS_WANTED_LEVEL_GREATERIsWantedLevelGreater
Not described yet
- LIMIT_TWO_PLAYER_DISTANCELimitTwoPlayerDistance
Not described yet
- MAINTAIN_FLASHING_STAR_AFTER_OFFENCEMaintainFlashingStarAfterOffence
Not described yet
- MAKE_PLAYER_FIRE_PROOFMakePlayerFireProof
Not described yet
- MAKE_PLAYER_GANG_DISAPPEARMakePlayerGangDisappear
Not described yet
- MAKE_PLAYER_GANG_REAPPEARMakePlayerGangReappear
Not described yet
- MAKE_PLAYER_SAFE_FOR_CUTSCENEMakePlayerSafeForCutscene
Not described yet
- MAKE_ROOM_IN_PLAYER_GANG_FOR_MISSION_PEDSMakeRoomInPlayerGangForMissionPeds
Not described yet
- PLAYER_HAS_CHARPlayerHasChar
Checks the player has a vaild character.
- PLAYER_HAS_FLASHING_STAR_AFTER_OFFENCEPlayerHasFlashingStarAfterOffence
Not described yet
- PLAYER_HAS_FLASHING_STARS_ABOUT_TO_DROPPlayerHasFlashingStarsAboutToDrop
Not described yet
- PLAYER_HAS_GREYED_OUT_STARSPlayerHasGreyedOutStars
Not described yet
- PLAYER_IS_PISSED_OFFPlayerIsPissedOff
Returns true if the player is currently in a bad mood.
- RELEASE_TWO_PLAYER_DISTANCEReleaseTwoPlayerDistance
Not described yet
- REMOVE_PLAYER_HELMETRemovePlayerHelmet
Lets the helmet of the player's character come off.
- REMOVE_RC_BUGGYRemoveRcBuggy
Not described yet
- RESET_ACHIEVEMENTS_AWARDResetAchievementsAward
Not described yet
- RESET_LOCAL_PLAYER_WEAPON_STATResetLocalPlayerWeaponStat
Not described yet
- RESET_NO_LAW_VEHICLES_DESTROYED_BY_LOCAL_PLAYERResetNoLawVehiclesDestroyedByLocalPlayer
Not described yet
- RESET_NUM_OF_MODELS_KILLED_BY_PLAYERResetNumOfModelsKilledByPlayer
Not described yet
- SET_ALL_RANDOM_PEDS_FLEESetAllRandomPedsFlee
Stops all random peds from attacking the player, except cops.
- SET_DRAW_PLAYER_COMPONENTSetDrawPlayerComponent
Hides (false) or shows (true) a component (see SET_CHAR_COMPONENT_VARIATION) on every character with a player model on this client: the main character and the multiplayer models, for all players at on
- SET_EVERYONE_IGNORE_PLAYERSetEveryoneIgnorePlayer
Sets all peds (including police) will ignore the player.
- SET_FREE_HEALTH_CARESetFreeHealthCare
Not described yet
- SET_HEADING_FOR_ATTACHED_PLAYERSetHeadingForAttachedPlayer
Not described yet
- SET_IGNORE_LOW_PRIORITY_SHOCKING_EVENTSSetIgnoreLowPriorityShockingEvents
Peds ignore lower priority shocking events, for use in tightly scripted situations, must be reset to false when finished.
- SET_MAX_WANTED_LEVELSetMaxWantedLevel
Sets the max wanted level the player can get.
- SET_PLAYER_AS_COPSetPlayerAsCop
Not described yet
- SET_PLAYER_CAN_BE_HASSLED_BY_GANGSSetPlayerCanBeHassledByGangs
Sets if the player can be hassled by gangs.
- SET_PLAYER_CAN_DO_DRIVE_BYSetPlayerCanDoDriveBy
Sets whether the player is able to fire an uzi from a car.
- SET_PLAYER_CAN_USE_COVERSetPlayerCanUseCover
Sets if the player can use cover.
- SET_PLAYER_COLOURSetPlayerColour
Not described yet
- SET_PLAYER_CONTROLSetPlayerControl
Sets the players control state.
- SET_PLAYER_CONTROL_ADVANCEDSetPlayerControlAdvanced
Not described yet
- SET_PLAYER_CONTROL_FOR_AMBIENT_SCRIPTSetPlayerControlForAmbientScript
Not described yet
- SET_PLAYER_CONTROL_FOR_NETWORKSetPlayerControlForNetwork
Sets the players control for network.
- SET_PLAYER_CONTROL_FOR_TEXT_CHATSetPlayerControlForTextChat
Not described yet
- SET_PLAYER_DISABLE_CROUCHSetPlayerDisableCrouch
Not described yet
- SET_PLAYER_DISABLE_JUMPSetPlayerDisableJump
Not described yet
- SET_PLAYER_FAST_RELOADSetPlayerFastReload
Not described yet
- SET_PLAYER_FORCED_AIMSetPlayerForcedAim
Forces the player to always aim.
- SET_PLAYER_GROUP_RECRUITMENTSetPlayerGroupRecruitment
Not described yet
- SET_PLAYER_GROUP_TO_FOLLOW_ALWAYSSetPlayerGroupToFollowAlways
Not described yet
- SET_PLAYER_GROUP_TO_FOLLOW_NEVERSetPlayerGroupToFollowNever
Not described yet
- SET_PLAYER_INVINCIBLESetPlayerInvincible
Set the player invincible to all damage types.
- SET_PLAYER_KEEPS_WEAPONS_WHEN_RESPAWNEDSetPlayerKeepsWeaponsWhenRespawned
Not described yet
- SET_PLAYER_MAY_ONLY_ENTER_THIS_VEHICLESetPlayerMayOnlyEnterThisVehicle
Set the player can only enter this vehicle, set to null if you want them to enter any vehicle.
- SET_PLAYER_MOOD_NORMALSetPlayerMoodNormal
The players mood is set to normal.
- SET_PLAYER_MOOD_PISSED_OFFSetPlayerMoodPissedOff
Will piss the player off for duration of seconds.
- SET_PLAYER_MP_MODIFIERSetPlayerMpModifier
Not described yet
- SET_PLAYER_NEVER_GETS_TIREDSetPlayerNeverGetsTired
Not described yet
- SET_PLAYER_PLAYER_TARGETTINGSetPlayerPlayerTargetting
Not described yet
- SET_PLAYER_TEAMSetPlayerTeam
Set the players current team.
- SET_PLAYERS_CAN_BE_IN_SEPARATE_CARSSetPlayersCanBeInSeparateCars
Not described yet
- SET_PLAYERSETTINGS_MODEL_VARIATIONS_CHOICESetPlayersettingsModelVariationsChoice
Same as SET_PED_COMPONENTS_TO_NETWORK_PLAYERSETTINGS_MODEL for the character of the player.
- SET_POLICE_IGNORE_PLAYERSetPoliceIgnorePlayer
Use this to stop the police arresting the player.
- SET_POLICE_RADAR_BLIPSSetPoliceRadarBlips
Sets if police blips are displayed on the radar.
- SET_SCRIPT_LIMIT_TO_GANG_SIZESetScriptLimitToGangSize
Not described yet
- SET_USE_LEG_IKSetUseLegIk
Not described yet
- SET_WANTED_MULTIPLIERSetWantedMultiplier
Not described yet
- SHOW_SIGNIN_UIShowSigninUi
Shows the system sign-in UI.
- START_FIRING_AMNESTYStartFiringAmnesty
Any contributions to the wanted level are blocked for 5 seconds or so.
- STORE_SCOREStoreScore
Not described yet
- STORE_WANTED_LEVELStoreWantedLevel
Not described yet
- TAKE_REMOTE_CONTROL_OF_CARTakeRemoteControlOfCar
Not described yet
- USE_DETONATORUseDetonator
Not described yet
- WHAT_WILL_PLAYER_PICKUPWhatWillPlayerPickup
Returns the ID of the object that the player will pick up if they press PICKUP now.
Descriptions by the HappinessMP community, licensed under CC BY-SA 4.0. You may reuse them if you name HappinessMP as the source and share your version under the same license.