_IS_PICKUP_PICKABLE_FOR_TEAM
Returns whether the pickup object is pickable for the specified team.
Hash
0x9F52AD67D1A91BADRuntime name
IsPickupPickableForTeamNamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _IS_PICKUP_PICKABLE_FOR_TEAM(Object object, int teamId);Parameters
| Name | Type | Description |
|---|---|---|
object | Object | — |
teamId | int | — |
Returns BOOL
Description
Returns whether the pickup object is pickable for the specified team.
Observed with portable pickups: after SET_TEAM_PICKUP_OBJECT disables pickup for team 1, this returns false for team 1 while remaining true for another team.
Usage
local retval = IsPickupPickableForTeam(object, teamId)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9F52AD67D1A91BAD, object, teamId, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPickupPickableForTeam(object, teamId);
// by hash
const retval = Citizen.invokeNative('0x9F52AD67D1A91BAD', object, teamId, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x9F52AD67D1A91BAD, object, teamId);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.