| Property | Value |
|---|---|
| Native Name | REMOVE_MODEL_HIDE |
| Hash | 0xD9E3006FB3CBD765 |
| Return Type | void |
| Parameters | x (float), y (float), z (float), radius (float), model (Hash), lazy (BOOL) |
Description: Makes all objects of the specified model that were hidden using CREATE_MODEL_HIDE or CREATE_MODEL_HIDE_EXCLUDING_SCRIPT_OBJECTS visible again.
If lazy is false, all matching objects currently in scope are restored immediately. If lazy is true, objects will only reappear when their map is reloaded.
Parameters
x(float) — X Coordinate of the sphere center.y(float) — Y Coordinate of the sphere center.z(float) — Z Coordinate of the sphere center.radius(float) — Radius of the sphere.model(Hash) — The model hash to make visible again.lazy(BOOL) — false to apply the change immediately.
Examples
-- This could be any coordinates, in this example I am using the players ped coordinates
local playerPedCoords = GetEntityCoords(PlayerPedId())
-- Hides all entities with the hash "1437508529" within 1.0 gta units.
CreateModelHide(playerPedCoords, 1.0, 1437508529, true)
Citizen.Wait(2500)
-- This will make all hidden entities with the hash "1437508529" within 1.0 gta units visible.
RemoveModelHide(playerPedCoords, 1.0, 1437508529, false)