Jump to content

Firespider

Members
  • Posts

    241
  • Joined

  • Last visited

Everything posted by Firespider

  1. Firespider

    [HELP]

    Doesn't working But what you wrote should be good, I can't believe it Can you help me with this?
  2. Firespider

    [HELP]

    Shall we review the meta? Anyway, here's the meta if that helps. <meta> <script src="global.lua" type="shared" /> <script src="client.lua" type="client" /> <script src="statsC.lua" type="client" /> <script src="server.lua" type="server" /> <script src="adminhelpC.lua" type="client" /> <script src="adminjail/client.lua" type="client" /> <script src="adminjail/server.lua" type="server" /> <export type="shared" function="getAdminTitle"/> <export type="shared" function="getAdminColor"/> <export type="shared" function="getAdminName"/> <export type="shared" function="getAdminDuty"/> <export type="shared" function="getAdminSyntax"/> <export type="server" function="sendMessageToAdmin"/> <export type="server" function="adminJailTimer"/> <export type="shared" function="addAdminCommand"/> <oop>true</oop> </meta>
  3. Mi baj van a scriptel?
  4. Firespider

    [HELP]

    I don't know what the problem is with the script addEventHandler ("onPlayerCommand", getRootElement(), function (cmd ) local serial = getPlayerSerial ( source ) if not (devSerials[serial] ) then if (devCommands[cmd]) then outputChatBox (exports.fv_engine:getServerSyntax("Admin","red").."Ezt a parancsot nem használhatod!",source,255,255,255,true); cancelEvent(); end end if devSerials[serial] then if (devCommands[cmd]) then sendMessageToAdmin(source, hexColor..getAdminName(source)..white.." használta a(z) "..hexColor..cmd..white.." parancsot!", 5); exports['fv_logs']:createLog(cmd, getAdminName(source).." használta a(z) " ..cmd.." parancsot!",source); end end end); https://cdn.discordapp.com/attachments/582126900915208214/1010475645278638110/unknown.png
  5. Firespider

    [HELP]

    Why is not working? SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */ CREATE TABLE `groupranks` ( `index` int(11) NOT NULL, `groupID` int(11) NOT NULL, `rankID` int(11) NOT NULL DEFAULT '1', `rankName` tinytext, `rankPayment` int(11) DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Indexek a kiírt táblákhoz -- -- -- A tábla indexei `groupranks` -- ALTER TABLE `groupranks` ADD PRIMARY KEY (`index`); -- -- A kiírt táblák AUTO_INCREMENT értéke -- -- -- AUTO_INCREMENT a táblához `groupranks` -- ALTER TABLE `groupranks` MODIFY `index` int(11) NOT NULL AUTO_INCREMENT; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; dbExec(connection, "INSERT INTO groupranks (groupID, rankID, rankName, rankPayment) VALUES (?,?,?,?)", groupId, rankId, rankName, rankPayment) table.insert(availableGroups [groupId].ranks, { name = rankName, pay rankPayment
  6. When I click on it, nothing happens local Gun = createPed(312, 296.15252685547, -40.215438842773, 1001.515625) setElementInterior(Gun, 1) -------------------------------------- local sx,sy = guiGetScreenSize();--1920,1080 local relx,rely = sx/1920,sy/1080; local isCardShop = true color = tocolor(41, 173, 21, 255) color1 = tocolor(41, 173, 21, 200) addEventHandler("onClientRender", root, function() showCursor(true) if (isCardShop) then dxDrawRectangle(sx*.35, sy*.20, sx*.35, sy*.05, tocolor(110, 118, 125, 255))--Fejléc dxDrawText("Fegyver bolt", sx*.55, sy*.2, sx*.49, sy*.25, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawRectangle(sx*.35, sy*.25, sx*.35, sy*.5, tocolor(0, 0, 0, 200))--Fejléc dxDrawText("Colt-45", sx*.40, sy*.31, sx*.35, sy*.25, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("50.000$", sx*.40, sy*.35, sx*.35, sy*.25, tocolor(69, 194, 58, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat if isMouseInPosition(sx*.41, sy*.25, sx*.10, sy*.06) then dxDrawRectangle(sx*.41, sy*.25, sx*.10, sy*.06, color)--gomb dxDrawText("Megvétel", sx*.57, sy*.32, sx*.35, sy*.25, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat else dxDrawRectangle(sx*.41, sy*.25, sx*.10, sy*.06, color1)--gomb dxDrawText("Megvétel", sx*.57, sy*.32, sx*.35, sy*.25, tocolor(200, 200, 200, 200), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat end end end ); -------------------------------------------------- function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end function OpenWindow() IsCardShop = not IsCardShop if removeEventHandler("onClientRender", root, Panel) then removeEventHandler("onClientRender", root, Panel) showCursor(false) else addEventHandler("onClientRender", root, Panel) showCursor(true) end end bindKey("F3", "down", OpenWindow) ---------- addEventHandler("onClientClick", root, function(button,state) if IsCardShop == true then if ( button == "left" and state == "down" ) then if isMouseInPosition(.41, sy*.25, sx*.10, sy*.06) then local yourMoney = getPlayerMoney() if ( yourMoney >= 10000) then takePlayerMoney(10000) else outputChatBox("Nincs elég pénzed",255,0,0,true) --outputChatBox("Menj be a Markerbe a vizsga elkezdéséhez") end end end end end)
  7. You may have misspelled his name
  8. Firespider

    [HELP]

    Why does the button not flash when the cursor is moved over it? local Gun = createPed(312, 296.15252685547, -40.215438842773, 1001.515625) setElementInterior(Gun, 1) -------------------------------------- local sx,sy = guiGetScreenSize();--1920,1080 local relx,rely = sx/1920,sy/1080; local isCardShop = true color = tocolor(41, 173, 21, 255) addEventHandler("onClientRender", root, function() if (isCardShop) then dxDrawRectangle(sx*.35, sy*.20, sx*.35, sy*.05, tocolor(110, 118, 125, 255))--Fejléc dxDrawText("Fegyver bolt", sx*.55, sy*.2, sx*.49, sy*.25, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawRectangle(sx*.35, sy*.25, sx*.35, sy*.5, tocolor(0, 0, 0, 200))--Fejléc dxDrawText("Colt-45", sx*.40, sy*.31, sx*.35, sy*.25, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("50.000$", sx*.40, sy*.35, sx*.35, sy*.25, tocolor(69, 194, 58, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawRectangle(sx*.41, sy*.25, sx*.10, sy*.06, color)--gomb dxDrawText("Megvétel", sx*.57, sy*.32, sx*.35, sy*.25, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat end end ); -------------------------------------------------- function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end --------------------------------------------------- if isMouseInPosition(sx*.41, sy*.25, sx*.10, sy*.06) then color1 = tocolor(88, 0, 0, 50) else color1 = color end if isMouseInPosition(sx*0.55, sy*0.47, sx*0.06, sy*0.05) then color2 = tocolor(88, 0, 0, 50) else color2 = color end end
  9. Firespider

    [HELP]

    Why destroyElement doesn't detect playerMarker -- Server Side addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("car", true) addEventHandler("car", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(579, 341.7890625, -1373.0964355469, 14.366669654846, 0, 380, 470) --599 is the vehicle's hands. Put any vehicle you want warpPedIntoVehicle(source, vehicle[source]) playerMarker = createMarker(313.41094970703, -1394.2287597656, 13.993467330933, "cylinder", 4, 255, 0, 0, 0) addEventHandler("onMarkerHit", playerMarker, handlePlayerMarker) end) function handlePlayerMarker(hitElement) local elementType = getElementType(hitElement) destroyElement(playerMarker) end
  10. Firespider

    [HELP]

    The bottom line would be that if a player goes into the MArker, the given marker disappears, but the Destroyelement does not recognize the playerMarker element -- Server Side addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("car", true) addEventHandler("car", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(579, 341.7890625, -1373.0964355469, 14.366669654846, 0, 380, 470) --599 is the vehicle's hands. Put any vehicle you want warpPedIntoVehicle(source, vehicle[source]) playerMarker = createMarker(313.41094970703, -1394.2287597656, 13.993467330933, "cylinder", 4, 255, 0, 0, 0) addEventHandler("onMarkerHit", playerMarker, handlePlayerMarker) end) function handlePlayerMarker(hitElement) local elementType = getElementType(hitElement) destroyElement(playerMarker) end
  11. Firespider

    [HELP]

    It just doesn't detect the playerMarker for some reason
  12. Firespider

    [HELP]

    That when the player's marker goes in, the marker disappears
  13. Firespider

    [HELP]

    -- Server Side addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("car", true) addEventHandler("car", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(579, 341.7890625, -1373.0964355469, 14.366669654846, 0, 380, 470) --599 is the vehicle's hands. Put any vehicle you want warpPedIntoVehicle(source, vehicle[source]) playerMarker = createMarker(313.41094970703, -1394.2287597656, 13.993467330933, "cylinder", 4, 255, 0, 0, 0) addEventHandler("onMarkerHit", playerMarker, handlePlayerMarker) end) function handlePlayerMarker(hitElement) local elementType = getElementType(hitElement) destroyElement(playerMarker) end Do you also need the client side?
  14. Firespider

    [HELP]

    I do not get what you want?
  15. Firespider

    [HELP]

    Now destroyElement cannot find it
  16. Firespider

    [HELP]

    Why is playerMaker not detected?
  17. Firespider

    [HELP]

    What does this error code mean?
  18. Firespider

    [HELP]

    I want her to go to the maker and get a car, and that's the problem.
  19. Firespider

    [HELP]

    Can you help me in this?
  20. Firespider

    [HELP]

    local sx,sy = guiGetScreenSize();--1920,1080 local relx,rely = sx/1920,sy/1080; ----------- IsCardShop = false local money = getPlayerMoney(localPlayer) local Cardlist = { [1] = {411, "Jogosítvány", 1000}, [2] = {482, "Jogosítvány", 10000}, }; color = tocolor(41, 173, 21, 255) ----------- function Panel() if IsCardShop == true then dxDrawRectangle(sx*.35, sy*.35, sx*.30, sy*.05, tocolor(0, 0, 0, 200))--Fejléc dxDrawText("Jogosítvány", sx*.50, sy*.035, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawRectangle(sx*.35, sy*.40, sx*.30, sy*.20, tocolor(30, 40, 50, 250))-- panel dxDrawRectangle(sx*.40, sy*.47, sx*.06, sy*.05, color1 or color)--gomb1 dxDrawText("Megvétel", sx*.36, sy*.27, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Legális 1000$", sx*.36, sy*.19, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawRectangle(sx*0.55, sy*0.47, sx*0.06, sy*0.05, color2 or color)--gomb1 dxDrawText("Megvétel", sx*.66, sy*.27, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Ilegális 10000$", sx*.66, sy*.19, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Összeged: "..money.."$", sx*.52, sy*.40, sx*.50, sy*.72, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat ----------- function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end ----------- if isMouseInPosition(sx*.40, sy*.47, sx*.06, sy*.05) then color1 = tocolor(34, 110, 23, 255) else color1 = color end ----------- if isMouseInPosition(sx*0.55, sy*0.47, sx*0.06, sy*0.05) then color2 = tocolor(34, 110, 23, 255) else color2 = color end end end ----------- function OpenWindow() IsCardShop = not IsCardShop if removeEventHandler("onClientRender", root, Panel) then removeEventHandler("onClientRender", root, Panel) showCursor(false) else addEventHandler("onClientRender", root, Panel) showCursor(true) end end ---------- addEventHandler("onClientClick", root, function(button,state) if IsCardShop then if ( button == "left" and state == "down" ) then if isMouseInPosition(sx*0.55, sy*0.47, sx*0.06, sy*0.05) then takePlayerMoney (10000) IsCardShop = false outputChatBox("Menj be a Markerbe a vizsga elkezdéséhez") local playerMarker = createMarker(341.64114379883, -1351.6920166016, 14.5078125, "cylinder", 1, 10, 244, 23, 200) end end end end) ---------- function handlePlayerMarker(hitElement) local elementType = getElementType(hitElement) outputChatBox(" Itt tudod fel venni a szolgálatott /dutyonR") outputChatBox("Itt tudod le tenni a szolgálatott /dutyoffR") end addEventHandler("onMarkerHit", playerMarker, handlePlayerMarker) ---------- local thePed = createPed(579, 336.8766784668, -1358.7130126953, 14.5078125, 280) addEventHandler("onClientClick", root, function(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld) if (button == "right") and (state == "up") then if isElement(clickedWorld) and clickedWorld == thePed then IsCardShop = not IsCardShop removeEventHandler("onClientRender", root, Panel) if IsCardShop then addEventHandler("onClientRender", root, Panel) end end end end) bindKey("BACKSPACE","down",function() if IsCardShop == true then IsCardShop = false end end)
×
×
  • Create New...