SetInteriorRoomExtents
DocsSetInteriorRoomExtents(interiorId, roomIndex, bbMinX, bbMinY, bbMinZ, bbMaxX, bbMaxY, bbMaxZ)Parameters
| Name | Type | Description |
|---|---|---|
interiorId | int | The target interior. |
roomIndex | int | Interior room index. |
bbMinX | float | — |
bbMinY | float | — |
bbMinZ | float | — |
bbMaxX | float | — |
bbMaxY | float | — |
bbMaxZ | float | — |
Returns
voidThis native does not return a value.
Examples
Official
local playerPed = PlayerPedId()
local interiorId = GetInteriorFromEntity(playerPed)
if interiorId ~= 0 then
SetInteriorRoomExtents(interiorId, 0, -999.0, -999.0, -100.0, 999.0, 999.0, 100.0) -- 0 is a limbo usually
RefreshInterior(interiorId)
end