Jump to content

FlyingSpoon

Members
  • Posts

    749
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by FlyingSpoon

  1. Okay forget that, how would I do it so there is a dx scrollbar and text, without a memo, and I can scroll down the text, I saw it on some servers and was wondering how to do it.
  2. I have an almost finished notifications system, how can I check for the end of the rectangle? so when the text reaches the end it starts a new line, how would I do this? if (finda) then local height = (finda*14)+30 dxDrawRectangle(screenW * 0.8336, screenH * 0.0221 + yOffset, screenW * 0.1586, height, tocolor(0, 0, 0, v.alpha * 0.6)) dxDrawRectangle(screenW * 0.8289, screenH * 0.0221 + yOffset, screenW * 0.0047, height, tocolor(28, 96, 118, v.alpha * 0.6)) dxDrawText(v.text, screenW * 0.8391, screenH * 0.0299 + yOffset, screenW * 0.9844, screenH * 0.0885, tocolor(255, 255, 255, v.alpha), 1.00, "default", "left", "top", false, false, false, false, false) yOffset = yOffset + (v.heightMultiplier or 1) * (height + margin)
  3. Amazing resource, did get that Map bug, I loved the login and so on, until I couldn't spawn! Great resource!
  4. You should display your information on the main topic, it's really hard to understand when everything is squeezed together, you should space it out. But great service, been browsing your site.
  5. Not quite, similar but players only move in one direction back and forth, with legs closed.
  6. It's hosted at 99stack.com
  7. Aham, okay I'll tell that to my players, it's not a problem for me, it's other players reporting ;c
  8. Players seem to be moonwalking on others screen, like they only walk in one direction. Any fix for this?
  9. Hi there, I've been experiencing a problem with community, people can't download any files, can you fix this?
  10. Fixed thanks Works like charm. But I was really looking for the other type of function, this will do for the time being, thanks Walid
  11. function spawnMenu() setCameraMatrix ( 1950.25879, -1771.79895, 13.44688, 1700.25879, -1759.79895, 13.54688 ) spawnPed = createPed ( 29, 1947.74756, -1771.68896, 13.54688, 265 ) setElementFrozen ( spawnPed, true ) leftBtn = guiCreateButton(0.04, 0.44, 0.03, 0.04, "<", true) rightBtn = guiCreateButton(0.28, 0.44, 0.03, 0.04, ">", true) spawnBtn = guiCreateButton(0.075, 0.44, 0.20, 0.04, "Spawn", true) addEventHandler("onClientRender", getRootElement(), textRect) showCursor ( true ) addEventHandler ( "onClientRender", root, onRender ); end addEventHandler("onClientResourceStart", root, spawnMenu) function onRender ( ) if ( isElement( spawnPed ) ) then local _, _, rz = getElementRotation ( spawnPed ); local rz = rz - 1; if ( rz <= 1 ) then rz = 359; end setElementRotation ( spawnPed, 0, 0, rz ); end end I want it to go smooth and slow, but it's just going really fast and looks like it's glitching.
  12. Hey I want to make the ped rotate, while choosing skins. So for example I made a skin selector, but I want to rotate the ped 360, smoothly while the player browses through the skins, how would I do this? function spawnMenu() setCameraMatrix ( 1950.25879, -1771.79895, 13.44688, 1700.25879, -1759.79895, 13.54688 ) spawnPed = createPed ( 29, 1947.74756, -1771.68896, 13.54688, 265 ) setElementFrozen ( spawnPed, true ) leftBtn = guiCreateButton(0.04, 0.44, 0.03, 0.04, "<", true) rightBtn = guiCreateButton(0.28, 0.44, 0.03, 0.04, ">", true) spawnBtn = guiCreateButton(0.075, 0.44, 0.20, 0.04, "Spawn", true) addEventHandler("onClientRender", getRootElement(), textRect) showCursor ( true ) end addEvent("spawnMenu:chooseCharacter", true) addEventHandler("spawnMenu:chooseCharacter", root, spawnMenu)
  13. m is the message, still same thing I think we have to do it getElementByID, but I don't know how to use it.
  14. This is Bonsai's look - function arenaChat(m, messageType) if messageType == 2 then return elseif messageType == 0 then cancelEvent() outputChatBox(getPlayerName(source)..": #ffffff"..m, getElementByID(getElementData(source, "Arena")), 255, 255, 255, true) outputServerLog("CHAT: "..getCleanPlayerName(source)..": "..m," ") end end addEventHandler( "onPlayerChat", root, arenaChat )
  15. I think somehow we have to use getElementsByID I saw it in Bonsai's Gamemode, but I don't know how he did it.
  16. No errors, just that both dimensions can see chat.
  17. Still the other play can see chat from other dimension
  18. It works, but it shows the chat for both arena's I just want it to show the chat for arena 1 in dimension 0 and show chat for players in arena 2 for dimension 1, I dont want players to be able to see chat in different dimensions
  19. function checkDimension() for i,player in ipairs(getElementsByType("player")) do if ( getElementDimension ( player ) == 0 ) then setElementData(player, "Arena", true) elseif ( getElementDimension ( player ) == 1 ) then setElementData(player, "Arena2", true) end end end setTimer( checkDimension, 2000, 0) function playerChat(message, messageType, player) if messageType == 0 then cancelEvent() for i,player in ipairs(getElementsByType("player")) do local data = getElementData(player, "Arena") local data2 = getElementData(player, "Arena2") if data == true then outputChatBox("#FF6E6E(Local) #ffffff"..getPlayerName(source)..": #FF6E6E"..message, player, 255, 255, 255, true) outputServerLog("LOCAL: "..getPlayerName(source)..": "..message) elseif data2 == true and data == true then setElementData(player, "Arena", false) outputChatBox("#FF6E6E(Local) #ffffff"..getPlayerName(source)..": #FF6E6E"..message, player, 255, 255, 255, true) outputServerLog("LOCAL: "..getPlayerName(source)..": "..message) end end end end addEventHandler("onPlayerChat", root, playerChat) I want to make the chat only visible to certain dimensions, I tried something but it dont work.
  20. I want to get the people who are only set to that element data to see the outputted text, no one else
  21. function checkDimension() for i,player in ipairs(getElementsByType("player")) do if ( getElementDimension ( source ) == 0 ) then setElementData(player, "Arena", true) outputDebugString("[CHAT-SYSTEM] Settings for local chat have been updated for "..getPlayerCount().." players.") else setElementData(player, "Arena", false) end end end addEventHandler("onResourceStart", root, checkDimension) addEventHandler("onPlayerJoin", root, checkDimension) function playerChat(message, messageType, player) if messageType == 0 then cancelEvent() for i,player in ipairs(getElementsByType("player")) do local data = getElementData(player, "Arena") if data == true then outputChatBox("#FF6E6E(Local) #ffffff"..getPlayerName(player)..": #FF6E6E"..message, getElementByID(getElementData(source, "Arena")), 255, 255, 255, true) outputServerLog("LOCAL: "..getPlayerName(player)..": "..message) end end end end addEventHandler("onPlayerChat", root, playerChat) Will this only work for people in that dimension?
  22. One last thing, when I restart the resource once it says false, so it don't work then I restart it again it works, any ideas how to fix this?
  23. Testing it now, will report back to you of the status.
×
×
  • Create New...