Releases: rasikhq/VCMP-Lua
Releases · rasikhq/VCMP-Lua
Lua Plugin (2.8 Beta)
Lua Plugin (2.7 Beta)
Fixes #13
Lua Plugin (2.6 Beta)
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)
Fixed typo in setWeapon for Plalyer
Lua Plugin (2.5 Beta)
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)
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)
- Added numerous missing functions
- Fixed bugs in existing functions
Lua Plugin (2.4.X Alpha)
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:
Lua Plugin (2.3 Alpha)
- Server: setGame, getGame methods with gamemode property
- Player: forceSpawn method
Lua Plugin (2.2 Beta)
- General improvements