MiscClient

blockDispatchServiceResourceCreation

BLOCK_DISPATCH_SERVICE_RESOURCE_CREATION0x9B2BD3773123EA2F

The GTA V native BLOCK_DISPATCH_SERVICE_RESOURCE_CREATION of the MISC namespace, as LS:MP client scripts call it: the global function blockDispatchServiceResourceCreation, in JavaScript and in Lua.

SignatureJavaScript
blockDispatchServiceResourceCreation(
  dispatchService: number,
  toggle: boolean
): void
SignatureLua
blockDispatchServiceResourceCreation(
  dispatchService: integer,
  toggle: boolean
)

Usage

JavaScript
blockDispatchServiceResourceCreation(dispatchService, toggle);
Lua
blockDispatchServiceResourceCreation(dispatchService, toggle)

Parameters

ParameterTypeJavaScriptLua
dispatchServiceintnumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Misc MISC
In the game
void BLOCK_DISPATCH_SERVICE_RESOURCE_CREATION(int dispatchService, BOOL toggle)
Hash
0x9B2BD3773123EA2F

Open in the interactive natives reference