Releases: Megasware128/gta.js
Releases · Megasware128/gta.js
Basic player manipulation
This release adds some more basic player manipulation:
- game.addEventListener // function, param1 string type, param2 function
- addEventListener // copy of function of the same name
- game.player.position // get set { x, y, z }
- game.player.position.x // get set number
- game.player.position.y // get set number
- game.player.position.z // get set number
- game.player.health // get set number
- game.player.armor // get set number
- game.player.isDriving // get boolean
- game.player.isArrested // get boolean
- game.player.isInvisible // get set boolean, buggy
- game.player.model // get number, useless right now
addEventListener
has the following types: "main"
Proof of concept
This release is a proof of concept.
There are only two API's available:
- game.addEventListener
- game.player.health