GET_ENTITY_SCRIPT
Signature
char* GET_ENTITY_SCRIPT(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns char*
Usage
local retval = GetEntityScript(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xb7f70784, entity, Citizen.ResultAsString())JavaScript and C#
const retval = GetEntityScript(entity);
// by hash
const retval = Citizen.invokeNative('0xb7f70784', entity, Citizen.returnResultAnyway(), Citizen.resultAsString());string retval = Function.Call<string>((Hash)0xb7f70784, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.