Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

samp.js v0.1.9.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@damopewpew damopewpew released this 20 Jul 15:19
· 85 commits to master since this release

Changes/Bug Fixes

  • Player.js
    • Various setters/getters had incorrectly named variables causing issues with player.armour,player.health etc to not work ( thanks andievandy )
      • player.world added ( andievandy )
      • player.message( color, message ) Added (SendClientMessage alias)
      • Multiple funcs/getter/setters added by Laronic
      • Added cameraPos getter/setter
      • Added cameraLookAt getter/setter
      • Added cameraAspectRatio getter
      • Added cameraZoom getter
      • Added cameraFrontVector getter
      • Added surfingVehicle getter
      • Added vehicleSeat getter
      • Added toggleSpectate setter
      • Added setCameraBehind() func
      • Added inVehicle(vehicleid) func
      • Added inAnyVehicle() func
      • Added spectateVehicle(vehicleid, mode) func
      • Added spectatePlayer(target, mode) func
      • Added isAdmin() func
      • Added isNPC() func
      • Added kick() func
      • Added ban(reason) func
  • Server.js - Additions by Laronic
    • Added rcon(cmd) func
    • Added gamemode getter/setter
  • RegisterPublic was being parsed incorrectly causing callbacks to be cancelled when returning 1 instead of 0
  • Events.js caused callbacks to not be called in multiple scripts if not defined in the main script
  • print was causing malformed characters on some(one) machine
  • Fixed memory leak in print
  • mysql query now parses date objects to mysql timestamp ( thanks Laronic )