ScriptingChanges: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:
== Server 1.4.0 and newer ==
== Server 1.4.0 and newer ==
* Renamed <code>gta.createCivilian</code> to <code>gta.createPed</code><br/>
* Renamed <code>gta.createCivilian</code> to <code>gta.createPed</code><br/>
* Removed <code>element.owner</code><br/>
* Renamed <code>vehicle.carLock</code> to <code>vehicle.lockedStatus</code><br/>
* Renamed <code>vehicle.carLock</code> to <code>vehicle.lockedStatus</code><br/>
* Renamed <code>ped.setWeaponAmmunition</code> to <code>ped.setWeaponSlotAmmunition</code><br/>
* Renamed <code>ped.getWeaponAmmunition</code> to <code>ped.getWeaponSlotAmmunition</code><br/>
* Renamed <code>ped.setWeaponClipAmmunition</code> to <code>ped.setWeaponSlotClipAmmunition</code><br/>
* Renamed <code>ped.getWeaponClipAmmunition</code> to <code>ped.getWeaponSlotClipAmmunition</code><br/>
* Renamed <code>ped.setWeaponAmmunitionForWeaponId</code> to <code>ped.setWeaponAmmunition</code><br/>
* Renamed <code>ped.getWeaponAmmunitionForWeaponId</code> to <code>ped.getWeaponAmmunition</code><br/>
* Renamed <code>ped.setWeaponClipAmmunitionForWeaponId</code> to <code>ped.setWeaponClipAmmunition</code><br/>
* Renamed <code>ped.getWeaponClipAmmunitionForWeaponId</code> to <code>ped.getWeaponClipAmmunition</code><br/>
* Renamed <code>vehicle.carLock</code> to <code>vehicle.lockedStatus</code><br/>
* Renamed <code>gta.findGroundZForCoord</code> to gta.findGroundZCoordinate</code><br/>
* Renamed event <code>OnWastePed</code> to <code>OnPedWastedFromAttackerClient</code><br/>
* Added <code>hasCommandHandler</code><br/>
* Added <code>int vehicle.lightsStatus</code> to go with existing <code>bool vehicle.lights</code>
* Added <code>int vehicle.lightsStatus</code> to go with existing <code>bool vehicle.lights</code>
* Added <code>element.transient</code><br/>
* Added <code>element.transient</code><br/>
Line 30: Line 43:
* Renamed <code>setWindSpeed</code> to <code>gta.setWindSpeed</code> for IV<br/>
* Renamed <code>setWindSpeed</code> to <code>gta.setWindSpeed</code> for IV<br/>
* Renamed <code>vehicle.carWanderRandomly</code> to <code>vehicle.wanderRandomly</code><br/>
* Renamed <code>vehicle.carWanderRandomly</code> to <code>vehicle.wanderRandomly</code><br/>
* Updated <code>vehicle.driveTo</code> to take a Vec3 instead of 3 floats<br/>
* Changed <code>vehicle.driveTo</code> to take a Vec3 instead of 3 floats<br/>
* Updated <code>vehicle.flyTo</code> to take a Vec3 instead of 3 floats<br/>
* Changed <code>vehicle.flyTo</code> to take a Vec3 instead of 3 floats<br/>
* Updated <code>gta.findGroundZ</code> to take a Vec2 instead of 2 floats<br/>
* Changed <code>gta.findGroundZ</code> to take a Vec2 instead of 2 floats<br/>
* Updated <code>gta.findRoofZ</code> to take a Vec3 instead of 3 floats<br/>
* Changed <code>gta.findRoofZ</code> to take a Vec3 instead of 3 floats<br/>
* Updated <code>int element.syncer</code> to be <code>Client element.syncer</code><br/>
* Changed <code>int element.syncer</code> to be <code>Client element.syncer</code><br/>
* Updated <code>element.setSyncer</code> to take a Client object<br/>
* Changed <code>element.setSyncer</code> to take a Client object<br/>
* Added <code>entity.model</code> as alias for entity.modelIndex</code><br/>
* Added <code>entity.model</code> as alias for entity.modelIndex</code><br/>
* Renamed <code>ped.setWeaponAmmunition</code> to <code>ped.setWeaponSlotAmmunition</code><br/>
* Renamed <code>ped.getWeaponAmmunition</code> to <code>ped.getWeaponSlotAmmunition</code><br/>
* Renamed <code>ped.setWeaponClipAmmunition</code> to <code>ped.setWeaponSlotClipAmmunition</code><br/>
* Renamed <code>ped.getWeaponClipAmmunition</code> to <code>ped.getWeaponSlotClipAmmunition</code><br/>
* Renamed <code>ped.setWeaponAmmunitionForWeaponId</code> to <code>ped.setWeaponAmmunition</code><br/>
* Renamed <code>ped.getWeaponAmmunitionForWeaponId</code> to <code>ped.getWeaponAmmunition</code><br/>
* Renamed <code>ped.setWeaponClipAmmunitionForWeaponId</code> to <code>ped.setWeaponClipAmmunition</code><br/>
* Renamed <code>ped.getWeaponClipAmmunitionForWeaponId</code> to <code>ped.getWeaponClipAmmunition</code><br/>
* Renamed <code>vehicle.carLock</code> to <code>vehicle.lockedStatus</code><br/>
* Renamed <code>gta.findGroundZForCoord</code> to gta.findGroundZCoordinate</code><br/>
* Renamed event <code>OnWastePed</code> to <code>OnPedWastedFromAttackerClient</code><br/>
* Added <code>int vehicle.lightsStatus</code> to go with existing <code>bool vehicle.lights</code><br/>
* Added <code>int vehicle.lightsStatus</code> to go with existing <code>bool vehicle.lights</code><br/>
* Added <code>ped.getVehicleNearestDoorPosition</code> for III and VC<br/>
* Added <code>ped.getVehicleNearestDoorPosition</code> for III and VC<br/>
2,603

edits