GET_RESOURCE_PATH
Returns the physical on-disk path of the specified resource.
Signature
char* GET_RESOURCE_PATH(char* resourceName);Parameters
| Name | Type | Description |
|---|---|---|
resourceName | char* | The name of the resource. |
Returns char* — The resource directory name, possibly without trailing slash.
Description
Returns the physical on-disk path of the specified resource.
Usage
local retval = GetResourcePath(resourceName)
-- always works, by hash
local retval = Citizen.InvokeNative(0x61dcf017, resourceName, Citizen.ResultAsString())JavaScript and C#
const retval = GetResourcePath(resourceName);
// by hash
const retval = Citizen.invokeNative('0x61dcf017', resourceName, Citizen.returnResultAnyway(), Citizen.resultAsString());string retval = Function.Call<string>((Hash)0x61dcf017, resourceName);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.