Jump to content

Extinction

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by Extinction

  1. How can I make my own DX Combobox, with a working scroll/scrollbar? If there any explained examples it'll help, thank you.
  2. No, it's not returning nil. Works perfect, just that it shows for everyone rather that individuals.
  3. function spawnMenu() dxDrawRectangle(x*44, y*272, x*315, y*282, tocolor(0, 0, 0, 173), false) dxDrawRectangle(x*44, y*244, x*315, y*28, tocolor(150, 0, 0, 173), false) local r,g,c if isMouseInPosition(x*54, y*453, x*111, y*40) then r,g,c = 150, 0, 0 else r,g,c = 87, 0, 0 end dxDrawRectangle(x*54, y*453, x*111, y*40, tocolor(r, g, c, 173), false) local r,g,c if isMouseInPosition(x*238, y*453, x*111, y*40) then r,g,c = 150, 0, 0 else r,g,c = 87, 0, 0 end dxDrawRectangle(x*238, y*453, x*111, y*40, tocolor(r,g,c, 173), false) local r,g,c if isMouseInPosition(x*54, y*502, x*295, y*34) then r,g,c = 150, 0, 0 else r,g,c = 87, 0, 0 end dxDrawRectangle(x*54, y*502, x*295, y*34, tocolor(r,g,c, 173), false) dxDrawText("SPAWN", x*53, x*502, y*349, y*536, tocolor(255, 255, 255, 255), 1.50, "default", "center", "center", false, false, false, false, false) dxDrawText("<", x*54, y*453, x*165, y*492, tocolor(255, 255, 255, 255), 2.00, "default", "center", "center", false, false, false, false, false) dxDrawText(">", x*238, y*453, x*349, y*492, tocolor(255, 255, 255, 255), 2.00, "default", "center", "center", false, false, false, false, false) end function openMe() showCursor ( true ) setCameraMatrix (154.35172, -1939.35498, 4.2, 159.35172, -2400.35498, 3.77344) spawnPed = createPed ( 29, 154.39813, -1943.67480, 3.77344, 360 ) setElementFrozen ( spawnPed, true ) spawnBtn = guiCreateLabel(x*53, x*502, y*349, y*536, "", false) leftBtn = guiCreateLabel(x*54, y*453, x*111, y*40, "", false) rightBtn = guiCreateLabel(x*238, y*453, x*111, y*40, "", false) addEventHandler("onClientRender", getRootElement(), spawnMenu) end addEvent("showSpawn:true",true) addEventHandler("showSpawn:true", getRootElement(), openMe)
  4. function NameEvent2() addEventHandler("onClientRender", root, spawnMenu) openMe() setElementHealth(source,100) end addEventHandler("onClientPlayerWasted", root, NameEvent2) If I die once it opens, but if I die again, it doesnt open again.
  5. Hi there, I used and edited a community script I think it's Bonsai's Notification Script. I am trying to do only for the single player's itself, but instead it shows for everyone. Server Sided - else triggerClientEvent(source,"showNotification",getRootElement(), "An error occured! Please choose a different username/or password!", "error") end else triggerClientEvent(source,"showNotification",getRootElement(), "An account with this username already exists!", "error") end else triggerClientEvent(source,"showNotification",getRootElement(), "Null: Contact an Administrator", "error") end else triggerClientEvent(source,"showNotification",getRootElement(), "Null: Contact an Administrator", "error") end
  6. function onWaste() triggerClientEvent (source,"showSpawn:true", source) end addEventHandler("onPlayerWasted", root, onWaste) Trying to trigger my client side even, when the player dies it opens my Dx, Spawn Panel again? But it doesnt.
×
×
  • Create New...