0 Üye ve 1 Ziyaretçi konuyu incelemekte.
Freeroam panelin içinde fr_server.lua dosyasını veya 600 ile 700. satırların arasını atman mümkün mü ?
function unloadVehicle(vehicle) if not g_VehicleData[vehicle] then return end for name,timer in pairs(g_VehicleData[vehicle].timers) do if isTimer(timer) then killTimer(timer) end g_VehicleData[vehicle].timers[name] = nil end local creator = g_VehicleData[vehicle].creator if g_PlayerData[creator] then table.removevalue(g_PlayerData[creator].vehicles, vehicle) end g_VehicleData[vehicle] = nil if isElement(vehicle) then aracsahibi = getElementData(vehicle,"kilit_araba") if aracsahibi then removeElementData (aracsahibi,"kilit_arabasahibi") removeElementData (vehicle,"kilit_araba") end destroyElement(vehicle) endendfunction quitHandler(player) if g_PlayerData[source].blip and isElement(g_PlayerData[source].blip) then destroyElement(g_PlayerData[source].blip) end if sawnoffAntiAbuse[source] and isTimer (sawnoffAntiAbuse[source]) then killTimer (sawnoffAntiAbuse[source]) sawnoffAntiAbuse[source] = nil end table.each(g_PlayerData[source].vehicles, unloadVehicle) removeEventHandler("onFreeroamLocalSettingChange",source,onLocalSettingChange) g_PlayerData[source] = nil chatTime[source] = nil lastChatMessage[source] = nilendaddEventHandler('onPlayerQuit', root, quitHandler)addEvent('onServerCall', true)addEventHandler('onServerCall', resourceRoot, function(fnName, ...) source = client -- Some called functions require 'source' to be set to the triggering client local fnInfo = g_RPCFunctions[fnName] -- Custom check made to intercept the jetpack on custom gravity if fnInfo and type(fnInfo) ~= "boolean" and tostring(fnInfo.option) == "jetpack" then if tonumber(("%.3f"):format(getPedGravity(source))) ~= 0.008 then errMsg("* You may use jetpack only if the gravity is set to 0.008", source) return end end if fnInfo and ((type(fnInfo) == 'boolean' and fnInfo) or (type(fnInfo) == 'table' and getOption(fnInfo.option))) then local fn = _G for i,pathpart in ipairs(fnName:split('.')) do fn = fn[pathpart] end fn(...) elseif type(fnInfo) == 'table' then errMsg(fnInfo.descr .. ' is not allowed', source) end end)function clientCall(player, fnName, ...) triggerClientEvent(player, 'onClientCall', resourceRoot, fnName, ...)endfunction getPlayerName(player) return getOption("removeHex") and player.name:gsub("#%x%x%x%x%x%x","") or player.nameendaddEvent("onFreeroamLocalSettingChange",true)
Spoiler for Hiden: Kodfunction unloadVehicle(vehicle) if not g_VehicleData[vehicle] then return end for name,timer in pairs(g_VehicleData[vehicle].timers) do if isTimer(timer) then killTimer(timer) end g_VehicleData[vehicle].timers[name] = nil end local creator = g_VehicleData[vehicle].creator if g_PlayerData[creator] then table.removevalue(g_PlayerData[creator].vehicles, vehicle) end g_VehicleData[vehicle] = nil if isElement(vehicle) then aracsahibi = getElementData(vehicle,"kilit_araba") if aracsahibi then removeElementData (aracsahibi,"kilit_arabasahibi") removeElementData (vehicle,"kilit_araba") end destroyElement(vehicle) endendfunction quitHandler(player) if g_PlayerData[source].blip and isElement(g_PlayerData[source].blip) then destroyElement(g_PlayerData[source].blip) end if sawnoffAntiAbuse[source] and isTimer (sawnoffAntiAbuse[source]) then killTimer (sawnoffAntiAbuse[source]) sawnoffAntiAbuse[source] = nil end table.each(g_PlayerData[source].vehicles, unloadVehicle) removeEventHandler("onFreeroamLocalSettingChange",source,onLocalSettingChange) g_PlayerData[source] = nil chatTime[source] = nil lastChatMessage[source] = nilendaddEventHandler('onPlayerQuit', root, quitHandler)addEvent('onServerCall', true)addEventHandler('onServerCall', resourceRoot, function(fnName, ...) source = client -- Some called functions require 'source' to be set to the triggering client local fnInfo = g_RPCFunctions[fnName] -- Custom check made to intercept the jetpack on custom gravity if fnInfo and type(fnInfo) ~= "boolean" and tostring(fnInfo.option) == "jetpack" then if tonumber(("%.3f"):format(getPedGravity(source))) ~= 0.008 then errMsg("* You may use jetpack only if the gravity is set to 0.008", source) return end end if fnInfo and ((type(fnInfo) == 'boolean' and fnInfo) or (type(fnInfo) == 'table' and getOption(fnInfo.option))) then local fn = _G for i,pathpart in ipairs(fnName:split('.')) do fn = fn[pathpart] end fn(...) elseif type(fnInfo) == 'table' then errMsg(fnInfo.descr .. ' is not allowed', source) end end)function clientCall(player, fnName, ...) triggerClientEvent(player, 'onClientCall', resourceRoot, fnName, ...)endfunction getPlayerName(player) return getOption("removeHex") and player.name:gsub("#%x%x%x%x%x%x","") or player.nameendaddEvent("onFreeroamLocalSettingChange",true)Mesaj Birleştirildi: 09 Haziran 2020, 21:25:00Yardım edecek yok mu?