RemoveWorldModel
From Multi Theft Auto: Wiki
Note:
There are two types of world objects Binary IPL (anything not in data/maps and in gta3.img) and data IPL (anything in data/maps) Binary IPL removal requires a stream out if you are deleting anything within 300 units (anything visible) you can just move the camera to do this. Data IPL are removed instantly and this is not required. Also LOD objects are not removed automatically so you need to remove them separately.
This function is used to remove a world object.
Developer Note
I would strongly advise you use this server side rather than client side because it will just function infinitely better as you should not need to handle streaming it out/back in.
Syntax
Required Arguments
- modelID: A whole integer specifying the GTASA object model ID.
- radius: A floating point number representing the radius that will be eliminated.
- x: A floating point number representing the X coordinate on the map.
- y: A floating point number representing the Y coordinate on the map.
- z: A floating point number representing the Z coordinate on the map.
Returns
Returns true if the object was removed, false if invalid arguments were passed.
Requirements
| Minimum supported server | 1.2.0-9.03618 |
|---|---|
| Minimum supported client | 1.2.0-9.03618 |
Example
This example will removes buildings on BigEar:
removeWorldModel(16617,1000,-300,1556,75) --lod removeWorldModel(16616,1000,-300,1556,75) --lod removeWorldModel(16615,1000,-300,1556,75) --lod removeWorldModel(16138,1000,-300,1556,75) -- model
This example removes CJ house:
for i=700,20000 do removeWorldModel(i,10,2494,-1696,17) end
See Also
- areTrafficLightsLocked
- getAircraftMaxHeight
- getCloudsEnabled
- getGameSpeed
- getGravity
- getGroundPosition
- getHeatHaze
- getJetpackMaxHeight
- getScreenFromWorldPosition
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getWorldFromScreenPosition
- getZoneName
- isLineOfSightClear
- processLineOfSight
- resetHeatHaze
- resetSkyGradient
- resetWindVelocity
- setAircraftMaxHeight
- setCloudsEnabled
- setGameSpeed
- setGravity
- setHeatHaze
- setSkyGradient
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- testLineAgainstWater
- getGarageBoundingBox
- getGaragePosition
- getGarageSize
- getMinuteDuration
- getPlayerBlurLevel
- isGarageOpen
- isWorldSpecialPropertyEnabled
- setCloudsEnabled
- setGarageOpen
- setJetpackMaxHeight
- setMinuteDuration
- setPlayerBlurLevel
- setWorldSpecialPropertyEnabled
- setAmbientSoundEnabled
- isAmbientSoundEnabled
- resetAmbientSounds
- setWorldSoundEnabled
- isWorldSoundEnabled
- resetWorldSounds
- setInteriorSoundsEnabled
- getInteriorSoundsEnabled
- setRainLevel
- getRainLevel
- resetRainLevel
- setSunSize
- getSunSize
- resetSunSize
- setSunColor
- getSunColor
- resetSunColor
- setFarClipDistance
- getFarClipDistance
- resetFarClipDistance
- setFogDistance
- getFogDistance
- resetFogDistance
- createSWATRope
- removeWorldModel
- restoreWorldModel
- restoreAllWorldModels
- setOcclusionsEnabled
- getOcclusionsEnabled
- setBirdsEnabled
- getBirdsEnabled
FROM VERSION 1.3.1 r5000 ONWARDS
FROM VERSION 1.3.1 r5063 ONWARDS