Jump to content

swag_k_dog

Members
  • Posts

    100
  • Joined

  • Last visited

Everything posted by swag_k_dog

  1. it was my firewall. Actually I knew it could be my firewall but I had my windows language changed to russian ( I don't :Oing know why ) and I couldn't change anything in my windows because I was afraid not to :O up. Anyways, I changed my windows language and allowed the file in the firewall settings. Thank you <3
  2. the checkbox is to remove the ports.
  3. I opened my ports but when I write openports in the server cmd it says they.re closed. help? help?
  4. swag_k_dog

    ports not opened

    I opened my ports but when I write openports in the server cmd it says they.re closed. help?
  5. how is it possible to script a shader like this. look a the sky, the grass and the palms. could someone give me a resource that does it? https://www.youtube.com/watch?v=zJE926KF8-A
  6. thanks I figured it out. love you <3
  7. I made a separate client-side script for the window: GUIEditor = { label = {}, staticimage = {} } function openMissionWindow() missWINDOW = guiCreateWindow(969, 223, 387, 483, "THIEVES", false) guiWindowSetMovable(missWINDOW, false) guiWindowSetSizable(missWINDOW, false) guiSetAlpha(missWINDOW, 1.00) btnACCEPT = guiCreateButton(0.02, 0.92, 0.33, 0.06, "ACCEPT MISSION", true, missWINDOW) btnCLOSE = guiCreateButton(0.89, 0.92, 0.08, 0.06, "X", true, missWINDOW) GUIEditor.staticimage[1] = guiCreateStaticImage(0.03, 0.05, 0.26, 0.21, ":heist001/images/windowIMAGE.png", true, missWINDOW) windINFO = guiCreateLabel(0.31, 0.05, 0.65, 0.21, "The bank just got a new alarm system which\nhasn't been tested yet. It is the perfect\nmoment for a heist. \n\nGrap yo' :~ and come here to discuss the\nplan.\n", true, missWINDOW) windDETAILS = guiCreateLabel(0.02, 0.29, 0.95, 0.08, "When you're ready, just enter the building. We're waiting for you.\nDon't bring anyone..\n", true, missWINDOW) GUIEditor.label[1] = guiCreateLabel(19, 383, 358, 24, "REWARDS: $100.000 EXP 5000", false, missWINDOW) end and the marker script(separate file): heist001marker = createMarker(1809.6, -1168.8, 22.8, "cylinder", 1, 255, 0, 0) function openMission() exports.heist001:openMissionWindow() end addEventHandler("onPlayerMarkerHit",heist001marker, openMission) the window doesnt appear when I hit the marker. help?
  8. a panel with add-able skins. like when you buy a skin from a shop it appears in the panel (like personal wardrobe) pls pls
  9. local state = 0 addEventHandler("onClientKey", root, function(button, press) if state == 0 and button == "x" then showCursor(true) state = state + 1 elseif state == 1 then showCursor(false) state = state - 1 end end ) when I press X to show my cursor it appears for like 0.5 seconds and then it dissapears. also, if I hold X the cursor appears without dissapearing. make it normal? ty
  10. Hi I want to make a panel that opens a kind of inventory for skins. for example, you 1 skin when you start the game. and then using functions you add skins to your panel. is that possible? like, you complete a mission and a skin gets added to your panel and then you can use it whenever you want. explain if its possible and ill try to script it <3
  11. Download Error The requested file does not exist. Please contact an admin. I couldnt download it
  12. yes, but the player will be spawned with the argument I gave(for example, if I write 30, he will spawn with the skin id 30 ) but I want it to scan what skin the player has already and teleport them with the skin they had before without changing it.. thanks
  13. I made another script where it's a window to choose your skin. after that window comes this script: --server local creen, hotel, fbi, cross, cj local screenW, screenH = guiGetScreenSize() addEventHandler("onClientResourceStart", resourceRoot, function() showCursor(true) creen = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, ":spawnpanel/images/SPAWN.png", true) hotel = guiCreateButton(359, 316, 36, 36, "", false, creen) guiSetAlpha(hotel, 0.00) fbi = guiCreateButton(656, 310, 36, 36, "", false, creen) guiSetAlpha(fbi, 0.00) cross = guiCreateButton(712, 200, 36, 36, "", false, creen) guiSetAlpha(cross, 0.00) cj = guiCreateButton(870, 231, 36, 36, "", false, creen) guiSetAlpha(cj, 0.00) function closePanel() destroyElement(creen) removeEventHandler("onClientGUIClick", resourceRoot, guiClicked) showCursor(false) end function guiClicked(btn, state) if btn == "left" and state == "up" then if source == fbi then triggerServerEvent("FBI", localPlayer) closePanel() elseif source == hotel then triggerServerEvent("HOTEL", localPlayer) closePanel() elseif source == cross then triggerServerEvent("CROSS", localPlayer) closePanel() elseif source == cj then triggerServerEvent("CJ", localPlayer) closePanel() end end end addEventHandler("onClientGUIClick", resourceRoot, guiClicked) end ) addEvent("FBI", true) addEvent("HOTEL", true) addEvent("CJ", true) addEvent("CROSS", true) addEventHandler("FBI", getRootElement(), function() spawnPlayer (source, 1525.7, -1474, 9.5) end ) addEventHandler("HOTEL", getRootElement(), function() spawnPlayer (source, 293, -1531, 24.6) end ) addEventHandler("CJ", getRootElement(), function() spawnPlayer (source, 2328, -1222, 22.6) end ) addEventHandler("CROSS", getRootElement(), function() spawnPlayer(source, 1822, -1116, 24) end ) why do I spawn with CJ skin when I click one of the spawn buttons? and how do I spawn with the skin I chose? ty
  14. how do I give a name to my ped?
  15. how do you combine setTimer and createPed together? thanks
  16. i'll try addEventHandler("onClientResourceStart", resourceRoot, function() sound = playSound("music/APB.mp3") setTimer(stopSound,50000,1,sound) end ) the setTimer does not work for a reason or another.. I want the sound to stop after several seconds.. why doesnt it work? ty EDIT: It works, I just put a too high value
  17. addEventHandler("onClientResourceStart", resourceRoot, function() sound = playSound("music/APB.mp3") end ) like this?
  18. then. how do you make this script? with triggerEvent?
  19. why is there a "client" and "server" side.. why they are not together xD?
  20. I want a sound to be played when a player connects.. function playsound1() local sound = playSound("music/APB.mp3") end addEventHandler("onPlayerConnect", getRootElement(), playsound1) help :)?
  21. nevermind, it worked now. thanks
  22. setElementFrozen( element, true) ?
×
×
  • Create New...