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.6

Latest
Compare
Choose a tag to compare
@damopewpew damopewpew released this 01 Aug 11:07
· 28 commits to master since this release

Major Bug Fixes

  • Strings were not being cast properly in CallNativeGDK causing some strings to duplicate randomly at times and functions not to work correctly
  • Invalid player objects were being undefined rather than being a player object
  • Returns from callbacks/events weren't being registered properly
  • sampdb functions weren't converted properly and returned null values

Additions

  • Global events. These events allow you to fire an event which gets fired in all scripts. Usage example:
$server.emit('myevent', var1, var2, var3 );

// Another script
$server.on('myevent', function(var1, var2, var3 ){

});