Már megoldódott köszönöm, az nl_system azért nl_system mert minden almappa nl_ prefix el kezdődik, így nem global, alapból azért sem mert nem valhalla a mod alapja. De köszönöm a segítő készséged!
addCommandHandler( \"kick\",function( player, commandName, otherPlayer, ... )if otherPlayer then local other, name = exports.players:getFromName( player, otherPlayer, true ) if other then if not hasObjectPermissionTo( other, \"command.kick\", false ) then local reason = table.concat( { ... }, \" \" ) kickPlayer( other, player, #reason > 0 and reason ) else outputChatBox( \"You can\'t kick this player.\", player, 255, 0, 0 ) end endelse outputChatBox( \"Syntax: /\" .. commandName .. \" [player] [reason]\", player, 255, 255, 255 )endend,true)addCommandHandler( \"ban\",function( player, commandName, otherPlayer, hours, ... )hours = tonumber( hours )if otherPlayer and hours and hours >= 0 and ( ... ) then local other, name = exports.players:getFromName( player, otherPlayer, true ) if other then if not hasObjectPermissionTo( other, \"command.ban\", false ) then local reason = table.concat( { ... }, \" \" ) .. \" (\" .. ( hours == 0 and \"Permanent\" or ( hours < 1 and ( math.ceil( hours * 60 ) .. \" minutes\" ) or ( hours .. \" hours\" ) ) ) .. \")\" if exports.sql:query_free( \"UPDATE wcf1_user SET banned = 1, banReason = \'%s\', banUser = \" .. exports.players:getUserID( player ) .. \" WHERE userID = \" .. exports.players:getUserID( other ), reason ) then local serial = getPlayerSerial( other ) banPlayer( other, true, false, false, player, reason, math.ceil( hours * 60 * 60 ) ) if serial then addBan( nil, nil, serial, player, reason .. \" (\" .. name .. \")\", math.ceil( hours * 60 * 60 ) ) end end else outputChatBox( \"You can\'t ban this player.\", player, 255, 0, 0 ) end endelse outputChatBox( \"Syntax: /\" .. commandName .. \" [player] [time in hours, 0 for infinite] [reason]\", player, 255, 255, 255 )endend,true)