Skip to content

Releases: rasikhq/VCMP-Lua

Lua Plugin (2.8 Beta)

30 Oct 03:32
Compare
Choose a tag to compare

Bug fixes:

  • onPlayerDisconnect giving incorrect information

Added missing functions:

  • Server:getMaxPlayers
  • Server:setMaxPlayers
  • Server.maxPlayers getter/setter

Lua Plugin (2.7 Beta)

18 Oct 09:27
Compare
Choose a tag to compare

Lua Plugin (2.6 Beta)

08 Oct 16:21
Compare
Choose a tag to compare

Fixes:

  • Player.name not changing player's name (Untested, didn't have time)

Adds:

  • Pickup:getModel()

  • Vehicle:respawn()

  • Vehicle:repair() ( Alias: Vehicle:fix() )

  • Vehicle:getPartStatus(part) returns status for part

  • Vehicle:setPartStatus(part, status)

  • Vehicle:getTyreStatus(part) returns status for part

  • Vehicle:setTyreStatus(part, status)

  • Vehicle:getOccupant(seat) returns Player on seat or nil if seat is empty

  • Vehicle:getTurretRotation() returns float, float (horizontal, vertical) rotations

  • Vehicle.taxiLight getter/setter (status: bool)

Lua Plugin (2.5.2 Beta)

05 Oct 11:36
6c86919
Compare
Choose a tag to compare
Pre-release

Fixed typo in setWeapon for Plalyer

Lua Plugin (2.5 Beta)

02 Oct 16:39
Compare
Choose a tag to compare

Modules

  • Added a new section in luaconfig.ini called [modules] to add support for toggling plugin provided external Lua modules (Check README.md example ini config for more information)

Added missing functions:

  • int player:getAlpha()
  • player:setAlpha(int alpha, int fadeTime)
  • player.isAway

Vehicle functions

  • Vehicle.immunity property

Remarks

Closes #10

Lua Plugin (2.4 Beta)

02 Oct 11:31
Compare
Choose a tag to compare

Bug fixes:

  • Reading strings from streams returning incorrect results in certain scenarios

Added missing functions:

  • Player:kick()

  • PlayeR:ban()

  • disarm()

  • removeWeapon(int wep)

  • bool Server.banIP(string ip)

  • bool Server.unbanIP(string ip)

  • bool Server.isIPBanned(string ip)

Lua Plugin (2.3 Beta)

18 Sep 06:46
Compare
Choose a tag to compare
  • Added numerous missing functions
  • Fixed bugs in existing functions

Lua Plugin (2.4.X Alpha)

15 Sep 09:39
Compare
Choose a tag to compare
Pre-release

Added missing functions:

  • Server:

    • Added wastedSettings getter/setter property in Server class
    • Added killDelay getter/setter property in Server class
  • Player

    • Added static Player.announceAll(string msg [, int type = 0])
    • Added player class method Player:announce(string msg [, int type = 0])
  • Vehicle

    • Added static Vehicle.resetAllHandlings()
    • Added static Vehicle.modelHandlingRuleExists(int model, int rule)
    • Added static Vehicle.resetModelHandlingRule(int model, int rule)
    • Added static Vehicle.resetModelHandlingRules(int model)
    • Added static Vehicle.getModelHandlingRule(int model, int rule) => float
    • Added static Vehicle.setModelHandlingRule(int model, int rule, float value)
    • Added Vehicle:resetHandling() => void
    • Added Vehicle:resetHandlingRule(int rule / table rulesToReset) => void
    • Added Vehicle:hasHandlingRule(int rule) => boolean
    • Added Vehicle:getHandlingRule(int rule) => float
    • Added Vehicle:setHandlingRule(int rule, float value)

Bugs Fixed:

  • Fixed a bug in Timer.create where -1 wouldn't make an infinite timer (Thanks Necroso)
  • Map.hideObject throwing invalid parameter error ( #6 )

Lua Plugin (2.3 Alpha)

20 Apr 17:23
Compare
Choose a tag to compare
Pre-release
  • Server: setGame, getGame methods with gamemode property
  • Player: forceSpawn method

Lua Plugin (2.2 Beta)

18 Mar 12:29
Compare
Choose a tag to compare
  • General improvements