mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-06 15:56:18 +00:00
fixed the event handler registration stuff
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
print("test from lua")
|
||||
print("Player count: " .. MP.GetPlayerCount())
|
||||
|
||||
function onPluginLoaded()
|
||||
function onPluginLoaded2()
|
||||
print("HI!")
|
||||
end
|
||||
|
||||
MP.RegisterEventHandler("onPluginLoaded", "onPluginLoaded")
|
||||
function onPlayerAuthenticated2(name)
|
||||
print("hi welcome mista " .. name)
|
||||
end
|
||||
|
||||
MP.RegisterEventHandler("onPluginLoaded", "onPluginLoaded2")
|
||||
MP.RegisterEventHandler("onPlayerAuthenticated", "onPlayerAuthenticated2")
|
||||
|
||||
Reference in New Issue
Block a user