mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-22 16:17:40 +00:00
more work on the lua stuff
This commit is contained in:
1 parent
e781bbac8e
commit
1c21298351
5 files changed
+36
-16
No files matched your search
@@ -1,13 +1,18 @@
|
||||
print("test from lua")
|
||||
print("Player count: " .. MP.GetPlayerCount())
|
||||
|
||||
function onPluginLoaded2()
|
||||
function onPluginLoaded()
|
||||
print("HI!")
|
||||
end
|
||||
|
||||
function onPlayerAuthenticated2(name)
|
||||
function onPlayerAuthenticated(name)
|
||||
print("hi welcome mista " .. name)
|
||||
|
||||
print("current players:")
|
||||
for id, name in pairs(MP.GetPlayers()) do
|
||||
print("- [" .. id .. "]" .. name)
|
||||
end
|
||||
end
|
||||
|
||||
MP.RegisterEventHandler("onPluginLoaded", "onPluginLoaded2")
|
||||
MP.RegisterEventHandler("onPlayerAuthenticated", "onPlayerAuthenticated2")
|
||||
MP.RegisterEventHandler("onPluginLoaded", "onPluginLoaded")
|
||||
MP.RegisterEventHandler("onPlayerAuthenticated", "onPlayerAuthenticated")
|
||||
Reference in new issue
Block a user