Editable files
Client Editable.lua
function drawMarker(coords)
DrawMarker(config.marker.type, coords.x, coords.y, coords.z + config.marker.height, 0.0, 0.0, 0.0, 0, 0.0, 0.0, config.marker.size[1], config.marker.size[2], config.marker.size[3], config.marker.rgb[1], config.marker.rgb[2], config.marker.rgb[3], config.marker.alpha, false, true, 2, false, false, false, false)
end
Server Editable.lua
function getExitMessage(xPlayer, reasons)
local cid = tgiCore.getCid(xPlayer) -- citizen id or identifier
--local characterName = tgiCore.getCharacterName(xPlayer)
if config.colorful then
if config.showReasons then
return string.format("~g~%s\n~w~%s\n~r~%s", os.date('%H:%M'), cid, reasons)
else
return string.format("~g~%s\n~r~%s", os.date('%H:%M'), cid)
end
else
if config.showReasons then
return string.format("%s\n%s\n%s", os.date('%H:%M'), cid, reasons)
else
return string.format("%s\n%s", os.date('%H:%M'), cid)
end
end
end
function canLog(xPlayer, reasons)
return true
end
if config.test.active then
RegisterCommand(config.test.command, function(source, args)
local text = args[1] and table.concat(args, " ") or "(Server->client connection timed out. Last seen 313169 msec ago.)"
playerDropped(source, text)
end)
end
Last updated