EntityClient

setEntityNoweapondecals

SET_ENTITY_NOWEAPONDECALS0x2C2E3DC128F44309

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

SignatureJavaScript
setEntityNoweapondecals(entity: Entity, p1: boolean): void
SignatureLua
setEntityNoweapondecals(entity: Entity, p1: boolean)

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
p1BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_NOWEAPONDECALS(Entity entity, BOOL p1)
Hash
0x2C2E3DC128F44309
Formerly
_SET_ENTITY_DECALS_DISABLED

Open in the interactive natives reference