20.07.2015, 15:19
v0.1.9.4
Download 0.1.9.4
A few bug fixes and a few additions, lots of thanks to Laronic and andievandy for submitting bug reports and adding features
Thanks to everyone who is using it and testing. Also feel free to make feature requests for anything and I will most probably add it (within reason).
I also have a working example of reading MapAndreas files natively in samp.js with both buffered and non-buffered versions if anyone is interested give me a shout and I will make it pretty and upload it
Download 0.1.9.4
A few bug fixes and a few additions, lots of thanks to Laronic and andievandy for submitting bug reports and adding features
Код:
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 )
I also have a working example of reading MapAndreas files natively in samp.js with both buffered and non-buffered versions if anyone is interested give me a shout and I will make it pretty and upload it