1
0
Fork 0
forked from Simnation/Main
Main/resources/[tools]/kq_propplacer/server/editable/editable.lua

19 lines
549 B
Lua
Raw Permalink Normal View History

2025-06-07 08:51:21 +02:00
-- You can customize the permissions here
POLICY = {
-- Whether the player can use the prop placer
CanPlayerEdit = function(player)
return IsPlayerAceAllowed(player, 'command')
end,
}
RegisterCommand('propplacer', function(player)
if not POLICY.CanPlayerEdit(player) then
TriggerClientEvent('kq_link:client:notify', player, 'You do not have the permissions to use the Prop Placer', 'error')
return
end
TriggerClientEvent('kq_propplacer:client:openEditor', player)
end, true)