fixed the event handler registration stuff

This commit is contained in:
Luuk van Oijen
2023-11-13 16:57:45 +01:00
parent a0db8aa8be
commit e781bbac8e
4 changed files with 63 additions and 35 deletions

View File

@@ -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")