EntityClient

setEntitySortBias

SET_ENTITY_SORT_BIAS0x5C3B791D580E0BC2

The GTA V native SET_ENTITY_SORT_BIAS of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntitySortBias, in JavaScript and in Lua.

SignatureJavaScript
setEntitySortBias(entity: Entity, p1: number): void
SignatureLua
setEntitySortBias(entity: Entity, p1: number)

Usage

JavaScript
setEntitySortBias(entity, p1);
Lua
setEntitySortBias(entity, p1)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
p1floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Only called once in the scripts.

Related to weapon objects.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_SORT_BIAS(Entity entity, float p1)
Hash
0x5C3B791D580E0BC2

Open in the interactive natives reference