EntityClient

createModelHide

CREATE_MODEL_HIDE0x8A97BCA30A0CE478

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

SignatureJavaScript
createModelHide(
  x: number,
  y: number,
  z: number,
  radius: number,
  modelHash: Hash,
  p5: boolean
): void
SignatureLua
createModelHide(
  x: number,
  y: number,
  z: number,
  radius: number,
  modelHash: Hash,
  p5: boolean
)

Usage

JavaScript
createModelHide(x, y, z, radius, modelHash, p5);
Lua
createModelHide(x, y, z, radius, modelHash, p5)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
createModelHide(pos, radius, modelHash, p5);
Lua · with vectors
createModelHide(pos, radius, modelHash, p5)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
radiusfloatnumbernumber
modelHashHashnumberinteger
p5BOOLbooleanboolean

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.

p5 = sets as true in scripts
Same as the comment for createModelSwap unless for some reason p5 affects it this only works with objects as well.

Network players do not see changes done with this.

Reference

Namespace
Entity ENTITY
In the game
void CREATE_MODEL_HIDE(float x, float y, float z, float radius, Hash modelHash, BOOL p5)
Hash
0x8A97BCA30A0CE478

Open in the interactive natives reference