Scripting Changes
(Redirected from SignificantChanges)
Jump to navigation
Jump to search
This page shows information about significant changes in the scripting interface for previous versions of GTAC.
Server 1.4.0 and newer
- Renamed
gta.createCiviliantogta.createPed - Removed
element.owner - Renamed
ped.setWeaponAmmunitiontoped.setWeaponSlotAmmunition - Renamed
ped.getWeaponAmmunitiontoped.getWeaponSlotAmmunition - Renamed
ped.setWeaponClipAmmunitiontoped.setWeaponSlotClipAmmunition - Renamed
ped.getWeaponClipAmmunitiontoped.getWeaponSlotClipAmmunition - Renamed
ped.setWeaponAmmunitionForWeaponIdtoped.setWeaponAmmunition - Renamed
ped.getWeaponAmmunitionForWeaponIdtoped.getWeaponAmmunition - Renamed
ped.setWeaponClipAmmunitionForWeaponIdtoped.setWeaponClipAmmunition - Renamed
ped.getWeaponClipAmmunitionForWeaponIdtoped.getWeaponClipAmmunition - Renamed
vehicle.carLocktovehicle.lockedStatus - Renamed
gta.findGroundZForCoordtogta.findGroundZCoordinate - Renamed event
OnWastePedtoOnPedWastedFromAttackerClient - Added
hasCommandHandler - Added
int vehicle.lightsStatusto go with existingbool vehicle.lights - Added
element.transient - Added
element.findSyncer - Added
element.forceSyncer - Added
element.alwaysExistForSyncer - Added
element.distanceStreaming - Added
element.defaultExistance - Added
element.setExistsFor - Added
element.clearExistsFor - Added
element.streamInDistance - Added
element.streamOutDistance - Added
element.existsFor - Added
element.creator - Added
element.interior - Added
server.setPasswordfunction - Added
server.httpURL(readonly) - Added
OnReceivePacketscripting event
Client 1.4.0 and newer
- Renamed
gta.createCiviliantogta.createPed. - Renamed
gta.currentWeathertogta.weather - Renamed
currentWeathertogta.weatherfor IV - Renamed
forceWeathertogta.forceWeatherfor IV - Renamed
setWindSpeedtogta.setWindSpeedfor IV - Renamed
vehicle.carWanderRandomlytovehicle.wanderRandomly - Changed
vehicle.driveToto take a Vec3 instead of 3 floats - Changed
vehicle.flyToto take a Vec3 instead of 3 floats - Changed
gta.findGroundZto take a Vec2 instead of 2 floats - Changed
gta.findRoofZto take a Vec3 instead of 3 floats - Changed
int element.syncerto beClient element.syncer - Changed
element.setSyncerto take a Client object - Added
entity.modelas alias for entity.modelIndex - Added
int vehicle.lightsStatusto go with existingbool vehicle.lights - Added
ped.getVehicleNearestDoorPositionfor III and VC - Added
ped.getNearestPassengerDoorPositionfor III and VC - Added
ped.getPositionToOpenVehicleDoorfor III and VC - Added
ped.instantVehicleExitfor III and VC - Added
ped.instantVehicleJackfor III and VC - Added
ped.crouchingTimefor VC - Added pool count functions (getBuildingCount, getObjectCount)
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 |