CAN_PLAYER_START_MISSION
Returns true if player is able to start a mission.
Signature
BOOL CAN_PLAYER_START_MISSION(Player player); // 0x2DF170B1185AF777 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
Facts
| Name | CAN_PLAYER_START_MISSION |
|---|---|
| Hash | 0x2DF170B1185AF777 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x2DF170B1185AF777, -- CAN_PLAYER_START_MISSION
PlayerId() -- Player player
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x2DF170B1185AF777", // CAN_PLAYER_START_MISSION
PlayerId(), // Player player
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x2DF170B1185AF777, // CAN_PLAYER_START_MISSION
API.PlayerId() // Player player
);Related PLAYER natives
- _EAGLE_EYE_CAN_PLAYER_FOCUS_ON_TRACK
- _SET_PLAYER_CAN_MERCY_KILL
- _SET_PLAYER_CAN_PICKUP_ABILITY
- _SET_PLAYER_CAN_PICKUP_HAT
- SET_PLAYER_CAN_BE_HASSLED_BY_GANGS
- SET_PLAYER_CAN_USE_COVER
- START_PLAYER_TELEPORT
- CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_NON_ANIMAL_PED
- CLEAR_PLAYER_HAS_DAMAGED_AT_LEAST_ONE_PED
- CLEAR_PLAYER_WANTED_LEVEL
- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET
- _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.