Fivem Kick system
Kick your players on a cool way
30 Likes
congratulations on the idea
1 Like
Should change the standalone tag to QBCore…
good ideaa… can be more fun for player who AFK to long
1 Like
not too sure why that is a big issue when you can just change it to this
RegisterCommand('kick', function(source, args, rawCommand)
local targetId = tonumber(args[1])
if IsPlayerAceAllowed(source, 'ilv.kickplayer') then
if not targetId or GetPlayerName(targetId) == nil then
TriggerClientEvent("chat:addMessage", source, {
args = {"^1Error", "Invalid player ID"}
})
return
end
TriggerClientEvent("kick:ilv-scripts:KickKidnapScene", targetId)
SetTimeout(10000, function()
DropPlayer(targetId, "You have been kidnapped and kicked from the server.")
end)
else
TriggerClientEvent('chat:addMessage', source, {
args = {'^1Error', 'Access Denied'}
})
end
end, false)
1 Like
Although I don’t make servers anymore, I’d like to say if I was going to. I’d be using this, I like this
hahahahhaha,Very creative haha
1 Like
lmaoooo thats a funny way to put it
Hey IlyScripts can i use this resource and make it for ESX? i would of course give you credits. Kind Regards Matlukji