Matevsz
Members-
Posts
197 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Matevsz
-
I turned off and turned on the server, but the warning appears when I type /racl + "An unknown error occured. Please check the ACL file exists."
-
"An unknown error occured. Please check the ACL file exists." + Warning ReloadACL\ReloadACL.lua:3: Access denied @ 'aclReload'
-
I have already added "DJ"> "user.nick"> "resource.DjJob">
-
hmmm weird .. 0 errors, but how come into it's marker does not appear in debugscript 3 nothing.. in "p" > resource > Manage ACL > +DJ = objects user.nick and resource.Dj, so I'm in a group
-
the same as in line 32 delete "," in: addEventHandler ("onMarkerHit" marker, then the error is: ")" expected (to close "(" at line 32) near 'function'
-
server side, line 33: 32.addEventHandler("onMarkerHit", marker, 33.function openGUI( hitElement, matchingDimension ) ERROR: '(' expected near 'openGUI'
-
marker = createMarker (487.599609375, -0.900390625, 1001.4000244141, "cylinder", 0.60000002) stoldj = createObject (14391, 487.7001953125, -2.7001953125, 1002.299987793, 0, 0, 90) marker2 = createMarker (493.39999389648, -24.799999237061, 1001.299987793, "arrow", 1.20000004, 235, 227, 19, 255) marker3 = createMarker (1836.8000488281, -1682.5, 13.89999961853, "arrow", 1.20000004, 235, 227, 19, 255) glosnik1 = createObject (2232, 484.29998779297, -5.6999998092651, 1001.700012207, 0, 0, 0) glosnik2 = createObject (2232, 490.20001220703, -5.5999999046326, 1001.700012207, 0, 0, 0) glosnik3 = createObject (2232, 493.29998779297, -13.89999961853, 1002, 0, 0, 272) tancerka1 = createPed (90, 479.60000610352, -8.8999996185303, 1002.4000244141, 246.001373) tancerka2 = createPed (90, 479.5, -4.3000001907349, 1003.9000244141, 214.001373) barierka1 = createObject (2773, 1836, -1681, 13, 0, 0, 90) barierka2 = createObject (2773, 1833.4000244141, -1681, 13.10000038147, 2, 0, 90) barierka3 = createObject (2773, 1836.0999755859, -1684, 12.89999961853, 2, 0, 90) barierka4 = createObject (2773, 1833.4000244141, -1684, 13, 1.99951171875, 0, 90) blip = createBlip (1837.1999511719, -1682.5, 14.199999809265, 48, 2, 255, 0, 0, 255, 0) addEventHandler("onResourceStart", resourceRoot, function() tancerka1 = createPed (90, 479.60000610352, -8.8999996185303, 1002.4000244141, 246.001373) tancerka2 = createPed (90, 479.5, -4.3000001907349, 1003.9000244141, 214.001373) setTimer (AnimacjaTancerek, 1000, 0) end) function AnimacjaTancerek() setPedAnimation (tancerka1, "STRIP", "Strip_G") setPedAnimation (tancerka2, "DANCING", "dnce_M_e") end function TeleportNaDyskoteke(player) if getElementType(player)=="player" then if source == marker3 then setElementPosition(player, 493.60000610352, -22.799999237061, 1000.700012207) setElementInterior(player, 17) setElementFrozen(player, true) setElementInterior(glosnik1, 17) setElementInterior(glosnik2, 17) setElementInterior(glosnik3, 17) setElementInterior(marker2, 17) setElementInterior(marker, 17) setElementInterior(stoldj, 17) setElementInterior(tancerka1, 17) setElementInterior(tancerka2, 17) setTimer(setElementFrozen, 1000, 1, player, false) end end end addEventHandler("onMarkerHit", marker3, TeleportNaDyskoteke) function TeleportZDyskoteki(player) if getElementType(player)=="player" then if source == marker2 then setElementPosition(player, 1834.6999511719, -1682.5999755859, 13.39999961853) setElementInterior(player, 0) setElementFrozen(player, true) setTimer(setElementFrozen, 1000, 1, player, false) end end end addEventHandler("onMarkerHit", marker2, TeleportZDyskoteki) addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("DJ")) then if isElementWithInMarker("player") then setElementData(player, "Show_GUI", true) else setElementData(player, "Show_GUI", nil) end end end end ) addEventHandler("onPlayerLogin", root, function(_, acc) if isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("DJ")) then setElementData(source, "Show_GUI", true) else setElementData(source, "Show_GUI", nil) end end ) addEventHandler("onPlayerLogout", root, function(_, acc) tiggerClientEvent(source, "LogOutSetVisible", root) setElementData(source, "Show_GUI", nil) end ) addEventHandler("onMarkerHit", marker, function openGUI() if getElementData(localPlayer, "Show_GUI") ~= nil then guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiSetVisible(GUIEditor.window[1])) end end ) ERROR: Line 91: "function openGUI()" "(" expected near 'openGUI'
-
Hi there, how come into this marker does not show a GUI S: C:
-
Hi, I turn on the server and get in the car pops up an error (debugscript 3) Line9 Error: attempt it arlthmetic perform a global "spd_w '(a nil value) Code:
-
@Ref meta.xml corrected and the kind of work .. but I go to the server as this gets me 104 mb or as much as is .zip folder on the server but I do not see objects changelings What could be wrong?
-
I added all good .zip folder And I added an entry to mtaserver.conf And I threw the .zip folder resources> Gameplay
-
Hi, I have a script for a changeling, .zip folder threw two folders with files dff and txd and meta.xml and the script. for while the server error pops up: ERROR: Could not parse meta file for resource 'name' Loading of resource 'name' failed ERROR: Could not find resource name. Check it exists.
-
Server side: addEventHandler("onResourceStart", "onMarkerHit", marker, resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("DJ")) then if isElementWithInMarker("player") then setElementData(player, "Show_GUI", true) else setElementData(player, "Show_GUI", nil) end end end end ) addEventHandler("onPlayerLogin", root, function(_, acc) if isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("DJ")) then setElementData(source, "Show_GUI", true) else setElementData(source, "Show_GUI", nil) end end ) addEventHandler("onPlayerLogout", root, function(_, acc) tiggerClientEvent(source, "LogOutSetVisible", root) setElementData(source, "Show_GUI", nil) end ) Client side: GUIEditor = { button = {}, window = {}, label = {}, memo = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(242, 216, 1224, 670, "DjPanel By Matevsz", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(22, 39, 360, 32, "Wlacz dym", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(23, 93, 359, 34, "Wylacz dym", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(23, 179, 359, 32, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(81, 159, 253, 15, "Wpisz tekst, ktory bedzie pokazany na scianie", false, GUIEditor.window[1]) GUIEditor.browser[1] = guiCreateBrowser(396, 39, 810, 609, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(13, 624, 108, 34, "Zamknij", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(91, 228, 222, 29, "Pokaz tekst", false, GUIEditor.window[1]) local theBrowser = guiGetBrowser(GUIEditor.browser[1]) guiSetVisible(GUIEditor.window[1], false) end ) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "https://www.youtube.com") end ) end end function openGUI() if getElementData(localPlayer, "Show_GUI") ~= nil then guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiSetVisible(GUIEditor.window[1]) end end ) addEventHandler("onClientGUIClick", Zamknij, -- close GUI function () guiSetVisible(GUIEditor.window[1], false) showCursor(false) end ) addEvent("LogOutSetVisible", true) addEventHandler("LogOutSetVisible", root, function() if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end ) if something is wrong please write
-
Hi, how do to pad was immortal and you could not overthrow him, and object? And my question is how to make the gui opened after the entry into the marker and the person has to be in a group that gives Admin ACL doesn't work
-
how do to a player in the group acl = DJ consoles could see? acl group admin can add only function DjJob(thePlayer) Dj=createTeam("DJ", 214, 121, 22) local playerName = getAccountName(getPlayerName(thePlayer)) if isObjectInACLGroup("user."..PlayerName,aclGetGroup("DJ")) then if isElementWithinMarker then showCursor(true) guiSetVisible(GUIEditor.window[1], true) end end addCommandHandler("DjJob", DjJob) what's correct?
-
function object(source, object) if (object) then setElementInterior(2232, 17, x, y, z) end doesn't work get out of the interior I have to have some id to Los Stantos, but see the "0" and I'll edit.
-
Ok, now how do I see the objects you have set in the interior? And how to make teleport - leave the interior, which is the id of Los Santos?
-
sorry this is not the marker, "wejscie" is the marker, but also corrected does not work addEventHandler ("onMarkerHit", wejscie, Teleport)
-
marker = createMarker (487.599609375, -0.900390625, 1001.4000244141, "cylinder", 0.60000002) stoldj = createObject (14391, 487.7001953125, -2.7001953125, 1002.299987793, 0, 0, 90) glosnik1 = createObject (2232, 484.29998779297, -5.6999998092651, 1001.700012207, 0, 0, 0) glosnik2 = createObject (2232, 490.20001220703, -5.5999999046326, 1001.700012207, 0, 0, 0) glosnik3 = createObject (2232, 493.29998779297, -13.89999961853, 1002, 0, 0, 272) tancerka1 = createPed (90, 479.60000610352, -8.8999996185303, 1002.4000244141, 246.001373) tancerka2 = createPed (90, 479.5, -4.3000001907349, 1003.9000244141, 214.001373) wyjscie = createMarker (493.39999389648, -24.799999237061, 1001.299987793, "arrow", 1.20000004, 235, 227, 19, 255) wejscie = createMarker (1836.8000488281, -1682.5, 13.89999961853, "arrow", 1.20000004, 235, 227, 19, 255) blip = createBlip (1837.1999511719, -1682.5, 14.199999809265, 48, 2, 255, 0, 0, 255, 0) function AnimacjaTancerek(tance) setPedAnimation (tancerka1, "ped", "dnce_M_b") setPedAnimation (tancerka2, "ped", "dnce_M_e") end function Teleport(player) if getElementType(player)=="player" then if source == marker then setElementPosition(player, 493.60000610352, -22.799999237061, 1000.700012207) if ( getElementInterior(player) == 0 ) then setElementInterior(player, 17) setElementFrozen(player, true) setTimer(setElementFrozen, 1000, 1, player, false) end end end end addEventHandler("onMarkerHit", marker, Teleport) function DjJob(thePlayer) Dj=createTeam("DJ", 214, 121, 22) local playerName = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user."..PlayerName,aclgetGroup("DJ")) then showCursor(true) guiSetVisible(GUIEditor.window[1], true) GUIEditor = { button = {}, window = {}, label = {}, memo = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(242, 216, 1224, 670, "DjPanel By Matevsz", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(22, 39, 360, 32, "Włącz dym", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(23, 93, 359, 34, "Wyłącz dym", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(23, 179, 359, 32, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(81, 159, 253, 15, "Wpisz tekst, który będzie pokazany na ścianie", false, GUIEditor.window[1]) GUIEditor.browser[1] = guiCreateBrowser(396, 39, 810, 609, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(13, 624, 108, 34, "Zamknij", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(91, 228, 222, 29, "Pokaż tekst", false, GUIEditor.window[1]) local theBrowser = guiGetBrowser(GUIEditor.browser[1]) end ) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "https://www.youtube.com") end ) end end function closeGui() if source == Zamknij then showCursor(false) guiSetVisible(GUIEditor.window[1], false) end end addEventHandler("onClientGUIClick", root, closeGui) function WlaczDym() if source == GUIEditor.button[1] then dym = createObject (2780, 489.29998779297, -13.89999961853, 994.20001220703, 0, 0, 0) end end addEventHandler("onClientGUIClick", root, WlaczDym) function WylaczDym() if source == GUIEditor.button[2] then destroyElement(2780) end end addEventHandler("onClientGUIClick", root, WylaczDym)