Files
wnsrc/gamemodes/ixhl2rp/plugins/notes/sv_plugin.lua
lifestorm c6d9b6f580 Upload
2024-08-05 18:40:29 +03:00

28 lines
708 B
Lua

--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
local PLUGIN = PLUGIN
netstream.Hook("ixNotesSet", function(client, characterId, text)
if (CAMI.PlayerHasAccess(client, "Helix - Basic Admin Commands")) then
local character = ix.char.loaded[characterId]
if (character) then
character:SetNotes(text)
client:Notify("Notes succesfully saved.")
else
client:Notify("Character not found.")
end
else
client:Notify("You do not have permission to do that.")
end
end)