ScriptMapEdit
A selector for hiding stock objects and its saved ID.
Definition
Section titled “Definition”type ScriptMapEditSettings = { model: number; position: Vector3; radius: number; interior?: number; virtualWorld?: number; removeCollision?: boolean;};
type ScriptMapEdit = Readonly<Required<ScriptMapEditSettings> & { id: number }>;Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
model |
number |
Stock GTA:SA object model ID. |
position |
Vector3 |
Center of the search. X and Y within ±6000, Z from -500 to 2000. |
radius |
number |
Search radius in metres. Greater than 0 and at most 100. |
interior |
number |
The stock entity’s exact interior ID from 0 to 18. Defaults to 0. |
virtualWorld |
number |
The virtual world that sees the edit. Defaults to 0. Use virtualWorlds.every for all worlds. |
removeCollision |
boolean |
Also turn off collision. Defaults to false. |
id |
number |
The active edit’s ID, returned by mapEdits.hide. |