EntityClient

createModelHideExcludingScriptObjects

CREATE_MODEL_HIDE_EXCLUDING_SCRIPT_OBJECTS0x3A52AE588830BF7F

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

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

Usage

JavaScript
createModelHideExcludingScriptObjects(x, y, z, radius, modelHash, p5);
Lua
createModelHideExcludingScriptObjects(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
createModelHideExcludingScriptObjects(pos, radius, modelHash, p5);
Lua · with vectors
createModelHideExcludingScriptObjects(pos, radius, modelHash, p5)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
radiusfloatnumbernumber
modelHashHashnumberinteger
p5BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

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

Open in the interactive natives reference