forked from Simnation/Main
e
This commit is contained in:
parent
71293bdbaf
commit
51b5b23221
2 changed files with 0 additions and 31 deletions
|
@ -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)
|
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue