| Tematy otagowane jako: sluzby |
| 1. System sluzby |
By?by kto? mi?y i pom?g? naprawi? system duty dla OwlGaming 4.3? chyba nie musz? nikomu przedstawia?
#Oraz jak naprawi? to ?e po wpisaniu /setfactionleader imie 1 wyskakuje brak frakcji mimo ze PD jest podpisane pod 1
[lua]function openDutyWindow()
local availablePackages, allowList = fetchAvailablePackages(localPlayer)
if #availablePackages > 0 then
local dutyLevel = getElementData(localPlayer, "duty")
if not dutyLevel or dutyLevel == 0 then
selectPackageGUI_open(availablePackages, allowList)
else
triggerServerEvent("duty:offduty", localPlayer)
end
else
outputChatBox("There is no duty available for you at this spot!")
end
end
addCommandHandler("duty", openDutyWindow)
function itemIsAllowed(allowList, id)
for k,v in pairs(allowList) do
if tonumber(id) == tonumber(v[1]) then
return true
end
end
return false
end
-- --- --
-- GUI --
-- --- --
local gAvailablePackages = nil
local gChks = { }
local gButtons = { }
local gui = { }
function selectPackageGUI_open(availablePackages, allowList)
gAvailablePackages = availablePackages
local screenWidth, screenHeight = guiGetScreenSize()
local windowWidth, windowHeight = 680, 516
local left = screenWidth/2 - windowWidth/2
local top = screenHeight/2 - windowHeight/2
gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "Duty Selection", false)
guiWindowSetSizable(gui[&quo... |
| 2. UID GRACZY/ SLUZBY |
mam problem. zainstalowalem i wgralem paczke its your world i wszystkie uid sa wysokie, jak to zmienic?
i jeszcze na scoreboard sa slzuby, jak zrobic zeby bylo tam np. ceo? odpalic jakis skrypt czy jak?
z gory dzieki! |
|