Lua/Events/Client/MouseUp
From JC2-MP Documentation
< Lua
Name | MouseUp |
---|---|
Arguments (in table) | number button |
Return option | None |
Description
Fired when a mouse button is pressed.
button is from 1 to 5:
- Left click
- Right click
- Middle click
- Back button
- Forward button
Examples
Foo = function(args) local message = "Mouse button "..args.button.." released" Chat:Print(message, Color(255, 255, 255)) end Events:Subscribe("MouseUp", Foo)