1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-26 00:46:55 +02:00
parent 71293bdbaf
commit 51b5b23221
2 changed files with 0 additions and 31 deletions

View file

@ -1,12 +0,0 @@
local pluginData = {
name = "saltychat_plugin",
description = "Saltychat Plugin for Visn_ARE",
author = "Marcel135",
version = "1.0"
}
RegisterClientPlugin(pluginData, function(print)
HookEventHandler(ENUM_HOOKABLE_EVENTS.UNCONSCIOUS_STATE_CHANGED, function(state)
TriggerServerEvent('saltychat_plugin:setDeathStatus', state)
end)
end)

View file

@ -1,19 +0,0 @@
local pluginData = {
name = "saltychat_plugin",
description = "Saltychat Plugin for ARE",
author = "Marcel135",
version = "1.0"
}
RegisterServerPlugin(pluginData, function(print)
print("Saltychat ARE Plugin loaded")
RegisterNetEvent('saltychat_plugin:setDeathStatus')
AddEventHandler('saltychat_plugin:setDeathStatus', function(isDead)
if isDead then
exports["saltychat"]:SetPlayerAlive(source, false)
else
exports["saltychat"]:SetPlayerAlive(source, true)
end
end)
end)