FIND_FIRST_PICKUP
Signature
int FIND_FIRST_PICKUP(Entity* outEntity);Parameters
| Name | Type | Description |
|---|---|---|
outEntity | Entity* | — |
Returns int
Usage
local retval, outEntity = FindFirstPickup(outEntity)
-- always works, by hash
local retval, outEntity = Citizen.InvokeNative(0x3ff9d340, Citizen.PointerValueIntInitialized(outEntity), Citizen.ResultAsInteger())JavaScript and C#
const [retval, outEntity] = FindFirstPickup(outEntity);
// by hash
const [retval, outEntity] = Citizen.invokeNative('0x3ff9d340', Citizen.pointerValueIntInitialized(outEntity), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var outEntity = new OutputArgument();
int retval = Function.Call<int>((Hash)0x3ff9d340, outEntity);
// outEntity.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.