0 Üye ve 1 Ziyaretçi konuyu incelemekte.
F1 paneline sadece belirli kişilerin erişmesini sağlayabilirmiyim oluyorsa nasıl yapıcam şimdiden teşekkürler
function panel(p) if staff(p) then triggerClientEvent(p, "openfreeroampanel" ,p) else outputChatBox("yetkin yok.", p,255,0,0,true) endend staffslist = { {"Console"}, {"Admin"}, {"SuperModerator"}, {"Moderator"},}function staff(p) if isElement(p) then local aclname = getAccountName(getPlayerAccount(p)) for i,staffs in pairs(staffslist) do local acl = unpack(staffs) if aclGetGroup(acl) and isObjectInACLGroup("user." .. aclname, aclGetGroup(acl)) then return acl end end end return falseend
addEvent('onLoadedAtClient', true)addEventHandler('onLoadedAtClient', resourceRoot, function() bindKey( client,"F1", "down", panel ) if getOption('spawnmaponstart') and isPedDead(client) then clientCall(client, 'showWelcomeMap') end local settings = updateSettings() clientCall(client, 'freeroamSettings', settings) for player,data in pairs(g_PlayerData) do if player ~= client then local settings = data.settings setTimer(sendSettings,1500,1,client,player,settings) end end end, false)
addCommandHandler('fr', toggleFRWindow)bindKey('f1', 'down', toggleFRWindow)
function toggleFRWindow() if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else if guiGetInputMode() ~= "no_binds_when_editing" then guiSetInputMode("no_binds_when_editing") end showCursor(true) showAllWindows() endendaddEvent("openfreeroampanel" ,true)addEventHandler("openfreeroampanel",root,toggleFRWindow)
Serveri axitr üzerinden satın aldım bu dosyalar tam olarak nerde bulunuyor