Skip to content

Releases: Megasware128/gta.js

Basic player manipulation

11 May 00:24
Compare
Choose a tag to compare
Pre-release

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

07 May 16:19
Compare
Choose a tag to compare
Proof of concept Pre-release
Pre-release

This release is a proof of concept.
There are only two API's available:

  • game.addEventListener
  • game.player.health