RedM Natives

GET_PROP_FOR_SCENARIO_POINT

Old name: _GET_SCENARIO_POINT_ENTITY

Hash0x295514F198EFD0CA
Runtime nameGetPropForScenarioPoint
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

Entity GET_PROP_FOR_SCENARIO_POINT(int scenarioPoint, const char* name);

Parameters

NameTypeDescription
scenarioPointint—
nameconst char*—

Returns Entity

Description

Usage

Lua
local retval = GetPropForScenarioPoint(scenarioPoint, name)

-- always works, by hash
local retval = Citizen.InvokeNative(0x295514F198EFD0CA, scenarioPoint, name, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPropForScenarioPoint(scenarioPoint, name);

// by hash
const retval = Citizen.invokeNative('0x295514F198EFD0CA', scenarioPoint, name, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x295514F198EFD0CA, scenarioPoint, name);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.