RedM Natives

STOP_RESOURCE

Hash0x21783161
Runtime nameStopResource
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL STOP_RESOURCE(char* resourceName);

Parameters

NameTypeDescription
resourceNamechar*—

Returns BOOL

Usage

Lua
local retval = StopResource(resourceName)

-- always works, by hash
local retval = Citizen.InvokeNative(0x21783161, resourceName, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = StopResource(resourceName);

// by hash
const retval = Citizen.invokeNative('0x21783161', resourceName, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x21783161, resourceName);

Sources

Cfx.re native reference

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