ScriptingChanges: Difference between revisions
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
Updated <code>int element.syncer</code> to be <code>Client element.syncer</code><br/> | Updated <code>int element.syncer</code> to be <code>Client element.syncer</code><br/> | ||
Updated <code>element.setSyncer</code> to take a Client object<br/> | Updated <code>element.setSyncer</code> to take a Client object<br/> | ||
Added entity.model as alias for entity.modelIndex</code><br/> | Added <code>entity.model</code> as alias for entity.modelIndex</code><br/> | ||
Renamed <code>ped.setWeaponAmmunition to <code>ped.setWeaponSlotAmmunition</code><br/> | Renamed <code>ped.setWeaponAmmunition</code> to <code>ped.setWeaponSlotAmmunition</code><br/> | ||
Renamed <code>ped.getWeaponAmmunition to <code>ped.getWeaponSlotAmmunition</code><br/> | Renamed <code>ped.getWeaponAmmunition</code> to <code>ped.getWeaponSlotAmmunition</code><br/> | ||
Renamed <code>ped.setWeaponClipAmmunition to <code>ped.setWeaponSlotClipAmmunition</code><br/> | Renamed <code>ped.setWeaponClipAmmunition</code> to <code>ped.setWeaponSlotClipAmmunition</code><br/> | ||
Renamed <code>ped.getWeaponClipAmmunition to <code>ped.getWeaponSlotClipAmmunition</code><br/> | Renamed <code>ped.getWeaponClipAmmunition</code> to <code>ped.getWeaponSlotClipAmmunition</code><br/> | ||
Renamed <code>ped.setWeaponAmmunitionForWeaponId to <code>ped.setWeaponAmmunition</code><br/> | Renamed <code>ped.setWeaponAmmunitionForWeaponId</code> to <code>ped.setWeaponAmmunition</code><br/> | ||
Renamed <code>ped.getWeaponAmmunitionForWeaponId to <code>ped.getWeaponAmmunition</code><br/> | Renamed <code>ped.getWeaponAmmunitionForWeaponId</code> to <code>ped.getWeaponAmmunition</code><br/> | ||
Renamed <code>ped.setWeaponClipAmmunitionForWeaponId to <code>ped.setWeaponClipAmmunition</code><br/> | Renamed <code>ped.setWeaponClipAmmunitionForWeaponId</code> to <code>ped.setWeaponClipAmmunition</code><br/> | ||
Renamed <code>ped.getWeaponClipAmmunitionForWeaponId to <code>ped.getWeaponClipAmmunition</code><br/> | Renamed <code>ped.getWeaponClipAmmunitionForWeaponId</code> to <code>ped.getWeaponClipAmmunition</code><br/> | ||
Renamed <code>vehicle.carLock to <code>vehicle.lockedStatus</code><br/> | Renamed <code>vehicle.carLock</code> to <code>vehicle.lockedStatus</code><br/> | ||
Renamed <code>gta.findGroundZForCoord</code> to gta.findGroundZCoordinate</code><br/> | Renamed <code>gta.findGroundZForCoord</code> to gta.findGroundZCoordinate</code><br/> | ||
Renamed event <code>OnWastePed</code> to <code>OnPedWastedFromAttackerClient</code><br/> | Renamed event <code>OnWastePed</code> to <code>OnPedWastedFromAttackerClient</code><br/> |
Revision as of 04:06, 29 January 2022
This page shows information about significant changes in the scripting interface for previous versions of GTAC.
Server 1.4.0 and newer
Renamed gta.createCivilian
to gta.createPed
Renamed vehicle.carLock
to vehicle.lockedStatus
Client 1.4.0 and newer
Renamed gta.createCivilian
to gta.createPed.
Renamed gta.currentWeather
to gta.weather
Renamed currentWeather
to gta.weather
for IV
Renamed forceWeather
to gta.forceWeather
for IV
Renamed setWindSpeed
to gta.setWindSpeed
for IV
Renamed vehicle.carWanderRandomly
to vehicle.wanderRandomly
Updated vehicle.driveTo
to take a Vec3 instead of 3 floats
Updated vehicle.flyTo
to take a Vec3 instead of 3 floats
Updated gta.findGroundZ
to take a Vec2 instead of 2 floats
Updated gta.findRoofZ
to take a Vec3 instead of 3 floats
Updated int element.syncer
to be Client element.syncer
Updated element.setSyncer
to take a Client object
Added entity.model
as alias for entity.modelIndex
Renamed ped.setWeaponAmmunition
to ped.setWeaponSlotAmmunition
Renamed ped.getWeaponAmmunition
to ped.getWeaponSlotAmmunition
Renamed ped.setWeaponClipAmmunition
to ped.setWeaponSlotClipAmmunition
Renamed ped.getWeaponClipAmmunition
to ped.getWeaponSlotClipAmmunition
Renamed ped.setWeaponAmmunitionForWeaponId
to ped.setWeaponAmmunition
Renamed ped.getWeaponAmmunitionForWeaponId
to ped.getWeaponAmmunition
Renamed ped.setWeaponClipAmmunitionForWeaponId
to ped.setWeaponClipAmmunition
Renamed ped.getWeaponClipAmmunitionForWeaponId
to ped.getWeaponClipAmmunition
Renamed vehicle.carLock
to vehicle.lockedStatus
Renamed gta.findGroundZForCoord
to gta.findGroundZCoordinate
Renamed event OnWastePed
to OnPedWastedFromAttackerClient
Added int vehicle.lightsStatus
to go with existing bool vehicle.lights
Client/Server 1.3.0 and newer
Element type ELEMENT_CIVILIAN
was removed. Use ELEMENT_PED
instead.
Client/Server 1.3.0 and newer
The setErrorMode
function was removed from scripting.
Client 1.1.1 and newer
The game
namespace was removed from all names that used it, for both server-side and client-side functionality, as listed below.
New Name | Old Name |
---|---|
addMovingParticleEffect | game.addMovingParticleEffect |
addParticleEffect | game.addParticleEffect |
addToWorld | game.addToWorld |
aspectRatio | game.aspectRatio |
cameraInterior | game.cameraInterior |
cameraTarget | game.cameraTarget |
createBlipAttachedTo | game.createBlipAttachedTo |
createBlip | game.createBlip |
createBuilding | game.createBuilding |
createCivilian | game.createCivilian |
createEffect | game.createEffect |
createElement | game.createElement |
createObject | game.createObject |
createPickup | game.createPickup |
createPlayer | game.createPlayer |
createRenderTarget | game.createRenderTarget |
createSingleParticle | game.createSingleParticle |
createSphere | game.createSphere |
createVehicle | game.createVehicle |
drawRectangle | game.drawRectangle |
fadeCamera | game.fadeCamera |
findGroundZForCoord | game.findGroundZForCoord |
game | game.game |
getPeds | game.getPeds |
getRandomSkin | game.getRandomSkin |
getScreenFromWorldPosition | game.getScreenFromWorldPosition |
getVehicles | game.getVehicles |
getWorldFromScreenPosition | game.getWorldFromScreenPosition |
height | game.height |
messages.addJumpQ | game.messages.addJumpQ |
messages.clear | game.messages.clear |
removeFromWorld | game.removeFromWorld |
restoreCamera | game.restoreCamera |
rwRenderStateSet | game.rwRenderStateSet |
setCameraLookAt | game.setCameraLookAt |
setCameraLookAtEntity | game.setCameraLookAtEntity |
setCameraTarget | game.setCameraTarget |
setCiviliansEnabled | game.setCiviliansEnabled |
setEffect | game.setEffect |
setMainHUDEnabled | game.setMainHUDEnabled |
setRenderTarget | game.setRenderTarget |
setTrafficEnabled | game.setTrafficEnabled |
time.hour | game.time.hour |
time.minute | game.time.minute |
time.second | game.time.second |
weather.current | game.weather.current |
weather.force | game.weather.force |
weather.forceSnowing | game.weather.forceSnowing |
weather.snowing | game.weather.snowing |
width | game.width |
Client 1.0.19 and newer
The game
namespace was removed from all names that used it, for both server-side and client-side functionality, as listed below.
New Name | Old Name |
---|---|
createBlipAttachedTo | game.createBlipAttachedTo |
createEffect | game.createEffect |
createElement | game.createElement |
createVehicle | game.createVehicle |
world | game.getWorld |
fadeCamera | game.fadeCamera |