Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. You would need to use these functions: https://wiki.multitheftauto.com/wiki/Cl ... _functions and use these events in order to keep them showing: onClientRender or onClientPreRender
  2. Try this: Server addEventHandler ("onPlayerJoin", root,function() triggerClientEvent (source,"lobby",source) end) Client local bg = { ["bg"] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/bg.png", true) } for _,gui in pairs(bg)do guiSetVisible(gui,false) end guiSetEnabled (bg["bg"], false ) local ikony = { ["dd"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/dd.png", true), -- Obdélník ["drift"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/drift.png", true), -- Čtverec ["parkour"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/parkour.png", true), -- Čtverec ["trials"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/trials.png", true), -- Čtverec ["shooter"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/shooter.png", true), -- Čtverec ["dm"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/dm.png", true), -- Obdélník ["hunter"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/hunter.png", true), -- Obdélník ["zombie"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/zombie.png", true), -- Obdélník ["slender"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/slender.png", true), -- Obdélník ["race"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/race.png", true), -- Obdélník ["counterstrike"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/counterstrike.png", true), -- Obdélník } for _,image in pairs(ikony)do guiSetAlpha(image,0.75) end for _,gui in pairs(ikony)do guiSetVisible(gui,false) end local labely = { ["hraci"] = guiCreateLabel(0.00, 0.85, 1.00, 0.14, "Players: ".. tostring( #getElementsByType( "player" ) ), true) } local font2 = guiCreateFont( "lithos.ttf", 50 ) guiSetFont( labely["hraci"], font2 ) guiLabelSetHorizontalAlign(labely["hraci"], "center", false) guiLabelSetVerticalAlign(labely["hraci"], "center") for _,gui in pairs(labely)do guiSetVisible(gui,false) end --[[guiSetAlpha (ikony["dd"], 0.75 ) guiSetAlpha (ikony["drift"], 0.75 ) guiSetAlpha (ikony["parkour"], 0.75 ) guiSetAlpha (ikony["trials"], 0.75 ) guiSetAlpha (ikony["shooter"], 0.75 ) guiSetAlpha (ikony["dm"], 0.75 ) guiSetAlpha (ikony["hunter"], 0.75 ) guiSetAlpha (ikony["zombie"], 0.75 ) guiSetAlpha (ikony["slender"], 0.75 ) guiSetAlpha (ikony["race"], 0.75 ) guiSetAlpha (ikony["counterstrike"], 0.75 )]] local visible = false addEventHandler ( "onClientMouseEnter", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end) addEventHandler ( "onClientMouseLeave", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end) addEventHandler ( "onClientGUIClick", ikony["dm"], function(button) if button ~= "left" then return end visible = not visible showCursor ( visible ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, visible ) end end, false ) function lobby() visible = not visible showCursor ( visible ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, visible ) end end addEvent( "lobby", true) addEventHandler( "lobby",localPlayer, lobby) bindKey ("F1", "down",lobby)
  3. Sorry, but there's no other way to disable it. Post your code here please.
  4. try this: local bg = { ["bg"] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/bg.png", true) } for _,gui in pairs(bg)do guiSetVisible(gui,false) end guiSetEnabled (bg["bg"], false ) local ikony = { ["dd"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/dd.png", true), -- Obdélník ["drift"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/drift.png", true), -- Čtverec ["parkour"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/parkour.png", true), -- Čtverec ["trials"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/trials.png", true), -- Čtverec ["shooter"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/shooter.png", true), -- Čtverec ["dm"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/dm.png", true), -- Obdélník ["hunter"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/hunter.png", true), -- Obdélník ["zombie"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/zombie.png", true), -- Obdélník ["slender"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/slender.png", true), -- Obdélník ["race"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/race.png", true), -- Obdélník ["counterstrike"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/counterstrike.png", true), -- Obdélník } for _,image in pairs(ikony)do guiSetAlpha(image,0.75) end for _,gui in pairs(ikony)do guiSetVisible(gui,false) end local labely = { ["hraci"] = guiCreateLabel(0.00, 0.85, 1.00, 0.14, "Players: ".. tostring( #getElementsByType( "player" ) ), true) } local font2 = guiCreateFont( "lithos.ttf", 50 ) guiSetFont( labely["hraci"], font2 ) guiLabelSetHorizontalAlign(labely["hraci"], "center", false) guiLabelSetVerticalAlign(labely["hraci"], "center") for _,gui in pairs(labely)do guiSetVisible(gui,false) end --[[guiSetAlpha (ikony["dd"], 0.75 ) guiSetAlpha (ikony["drift"], 0.75 ) guiSetAlpha (ikony["parkour"], 0.75 ) guiSetAlpha (ikony["trials"], 0.75 ) guiSetAlpha (ikony["shooter"], 0.75 ) guiSetAlpha (ikony["dm"], 0.75 ) guiSetAlpha (ikony["hunter"], 0.75 ) guiSetAlpha (ikony["zombie"], 0.75 ) guiSetAlpha (ikony["slender"], 0.75 ) guiSetAlpha (ikony["race"], 0.75 ) guiSetAlpha (ikony["counterstrike"], 0.75 )]] addEventHandler ( "onClientMouseEnter", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end) addEventHandler ( "onClientMouseLeave", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end) local visible = true function lobby() visible = not visible showCursor ( visible ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, visible ) end end addEvent( "lobby", true) addEventHandler( "lobby", getRootElement(), lobby) bindKey ("F1", "down",lobby) addEventHandler ( "onClientGUIClick", ikony["dm"], function(button) if button ~= "left" then return end showCursor ( false ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, not visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, not visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, not visible ) end end, false )
  5. Do you use a command to show the cursor or a bind function? As of using addCommandHandler or bindKey. If you do then you could add the event handler for clicking on elements like the vehicle and remove it if the cursor isn't shown.
  6. Why do you need "onPlayerJoin"? It'll only be triggered server-sided for when the player joins as the onResourceStart or onClientResourceStart would be triggered after the resource is downloaded to the client.
  7. What if the player changes their name? The table wont free it until the resource is restarted/stopped. Anyways, try this: local blip = {} addEventHandler('onPlayerSpawn',root, function(_, _, _, _, theTeam) if (not isElement(blip[source])) then blip[source] = createBlipAttachedTo(source) end if(getTeamName(theTeam) == 'test') then local r, g, b = getTeamColor(theTeam) setPlayerNametagColor(source, r, g, b) setBlipColor(blip[source], r, g, b, 255) end end) setTimer(function() for source,b in pairs(blip)do if not isElement(source) then destroyElement(b) blip[source] = false end end end,10000,0)
  8. ok, try this then: local bg = { ["bg"] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/bg.png", true) } for _,gui in pairs(bg)do guiSetVisible(gui,false) end guiSetEnabled (bg["bg"], false ) local ikony = { ["dd"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/dd.png", true), -- Obdélník ["drift"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/drift.png", true), -- Čtverec ["parkour"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/parkour.png", true), -- Čtverec ["trials"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/trials.png", true), -- Čtverec ["shooter"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/shooter.png", true), -- Čtverec ["dm"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/dm.png", true), -- Obdélník ["hunter"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/hunter.png", true), -- Obdélník ["zombie"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/zombie.png", true), -- Obdélník ["slender"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/slender.png", true), -- Obdélník ["race"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/race.png", true), -- Obdélník ["counterstrike"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/counterstrike.png", true), -- Obdélník } for _,image in pairs(ikony)do guiSetAlpha(image,0.75) end for _,gui in pairs(ikony)do guiSetVisible(gui,false) end local labely = { ["hraci"] = guiCreateLabel(0.00, 0.85, 1.00, 0.14, "Players: ".. tostring( #getElementsByType( "player" ) ), true) } local font2 = guiCreateFont( "lithos.ttf", 50 ) guiSetFont( labely["hraci"], font2 ) guiLabelSetHorizontalAlign(labely["hraci"], "center", false) guiLabelSetVerticalAlign(labely["hraci"], "center") for _,gui in pairs(labely)do guiSetVisible(gui,false) end --[[guiSetAlpha (ikony["dd"], 0.75 ) guiSetAlpha (ikony["drift"], 0.75 ) guiSetAlpha (ikony["parkour"], 0.75 ) guiSetAlpha (ikony["trials"], 0.75 ) guiSetAlpha (ikony["shooter"], 0.75 ) guiSetAlpha (ikony["dm"], 0.75 ) guiSetAlpha (ikony["hunter"], 0.75 ) guiSetAlpha (ikony["zombie"], 0.75 ) guiSetAlpha (ikony["slender"], 0.75 ) guiSetAlpha (ikony["race"], 0.75 ) guiSetAlpha (ikony["counterstrike"], 0.75 )]] addEventHandler ( "onClientMouseEnter", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end) addEventHandler ( "onClientMouseLeave", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end) local visible = false bindKey ("F1", "down",function() visible = not visible showCursor ( visible ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, visible ) end end) addEventHandler ( "onClientGUIClick", ikony["dm"], function(button) if button ~= "left" then return end showCursor ( false ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, not visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, not visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, not visible ) end end, false ) Next time just use guiSetVisible if you don't want it to be shown to the player.
  9. Do you mean like the screen fading out and set the player to the ped position and then fade in? fadeCamera(player,false,3) setElementPosition(player,x,y,z) fadeCamera(player,true,3)
  10. For the resource topic: Anything outside the function's are created automatically without anything to trigger it, and by not putting it inside a function then it's global for the rest of the script to use. The event "onClientResourceStart" is triggered after the resource is downloaded to the client, while anything outside of it and is global will be shown/created while the resource is being downloaded to the client. local bg = { ["bg"] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/bg.png", true) } guiSetEnabled (bg["bg"], false ) local ikony = { ["dd"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/dd.png", true), -- Obdélník ["drift"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/drift.png", true), -- Čtverec ["parkour"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/parkour.png", true), -- Čtverec ["trials"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/trials.png", true), -- Čtverec ["shooter"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/shooter.png", true), -- Čtverec ["dm"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/dm.png", true), -- Obdélník ["hunter"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/hunter.png", true), -- Obdélník ["zombie"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/zombie.png", true), -- Obdélník ["slender"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/slender.png", true), -- Obdélník ["race"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/race.png", true), -- Obdélník ["counterstrike"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/counterstrike.png", true), -- Obdélník } for _,image in pairs(ikony)do guiSetAlpha(image,0.75) end local labely = { ["hraci"] = guiCreateLabel(0.00, 0.85, 1.00, 0.14, "Players: ".. tostring( #getElementsByType( "player" ) ), true) } local font2 = guiCreateFont( "lithos.ttf", 50 ) guiSetFont( labely["hraci"], font2 ) guiLabelSetHorizontalAlign(labely["hraci"], "center", false) guiLabelSetVerticalAlign(labely["hraci"], "center") --[[guiSetAlpha (ikony["dd"], 0.75 ) guiSetAlpha (ikony["drift"], 0.75 ) guiSetAlpha (ikony["parkour"], 0.75 ) guiSetAlpha (ikony["trials"], 0.75 ) guiSetAlpha (ikony["shooter"], 0.75 ) guiSetAlpha (ikony["dm"], 0.75 ) guiSetAlpha (ikony["hunter"], 0.75 ) guiSetAlpha (ikony["zombie"], 0.75 ) guiSetAlpha (ikony["slender"], 0.75 ) guiSetAlpha (ikony["race"], 0.75 ) guiSetAlpha (ikony["counterstrike"], 0.75 )]] addEventHandler ( "onClientMouseEnter", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end) addEventHandler ( "onClientMouseLeave", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end) local visible = false bindKey ("F1", "down",function() visible = not visible showCursor ( visible ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, visible ) end end) addEventHandler ( "onClientGUIClick", ikony["dm"], function(button) if button ~= "left" then return end showCursor ( false ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, not visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, not visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, not visible ) end end, false )
  11. Are you still offering free hosting?
  12. Jaysds1

    time out problem

    Try this: https://nightly.multitheftauto.com/ports/ And tell me what it says.
  13. Why not Assembla? Assembla seems like a professional site to upload it, plus it's more organized.
  14. It's not possible unless you create your own using a script which should be client-side.
  15. That should be a setting located in your MTA's Settings on the "Interface" tab.
  16. Not sure if you tried the second code I posted as I added a line of code on line 141. But anyways, Where do you put this code? { 3, 635.24976, -255.57161, 1081.03284, 50}, -- 135 County General Hospital, (TeddyBear) and if you don't mind can you post an ip:port where I could test this out?
  17. Things that's wrong or unknown to us: Variable "dep" isn't defined (Line 2) Variable "id" is already defined you can't localize it (Line 11 and Line 14) "source" isn't defined (Line 16) "id" needs to be converted into a number (Line 19) BTW, What are you trying to do in this script?
  18. Ok, Uninstall all MTA Programs, then install MTA 1.3 and run it (Don't download the patch yet) then if it works or doesn't work then run the MTADiag, then post the generated MTA:Pastebin URL. If MTA 1.3 works then run it again and install the patch it prompts you about,after see if MTA Freezes again and if it does then post a second MTADiag here. This would show us the difference between the 2.
  19. Can you post a pic please?
  20. This seemed to work for me: local objects = { --TeddyBear createObject ( 14602, 622.2998, -255.59961, 1085.40002 ), createObject ( 2164, 599.5, -270.70001, 1080.19995, 0, 0, 90 ), createObject ( 2164, 599.5, -268.89999, 1080.19995, 0, 0, 90 ), createObject ( 2164, 599.5, -267.10001, 1080.19995, 0, 0, 90 ), createObject ( 2164, 599.5, -265.29999, 1080.19995, 0, 0, 90 ), createObject ( 2202, 599.70001, -261.29999, 1080.09998, 0, 0, 89.979 ), createObject ( 2202, 599.70001, -263.5, 1080.09998, 0, 0, 89.979 ), createObject ( 1671, 604.90002, -255.5, 1080.5, 0, 0, 85.289 ), createObject ( 1671, 601.5, -260.29999, 1080.5, 0, 0, 88.549 ), createObject ( 1671, 601.5, -263.89999, 1080.5, 0, 0, 88.544 ), createObject ( 1671, 601.5, -267.29999, 1080.5, 0, 0, 88.544 ), createObject ( 1671, 601.5, -270.29999, 1080.5, 0, 0, 88.544 ), createObject ( 1671, 601.5, -251.10001, 1080.5, 0, 0, 88.544 ), createObject ( 1671, 601.5, -247, 1080.5, 0, 0, 88.544 ), createObject ( 1671, 601.5, -243.60001, 1080.5, 0, 0, 88.544 ), createObject ( 1671, 601.5, -240.7, 1080.5, 0, 0, 88.544 ), createObject ( 2190, 606.5, -254.8, 1080.80005, 0, 359.011, 303.395 ), createObject ( 2190, 603.20001, -250.7, 1081, 0, 359.006, 303.393 ), createObject ( 2190, 603.20001, -246.39999, 1081, 0, 359.006, 303.393 ), createObject ( 2190, 603.20001, -243.3, 1081, 0, 359.006, 303.393 ), createObject ( 2190, 602.79999, -241.7, 1081, 0, 359.006, 204.849 ), createObject ( 2190, 602.90002, -261.39999, 1081, 0, 359.006, 205.25 ), createObject ( 2190, 602.90002, -264.79999, 1081, 0, 359.006, 205.247 ), createObject ( 2190, 602.90002, -268, 1081, 0, 359.006, 205.247 ), createObject ( 2190, 603.20001, -269.60001, 1081, 0, 359.006, 297.27 ), createObject ( 2164, 599.5, -241.3, 1080.19995, 0, 0, 90 ), createObject ( 2164, 599.5, -243.10001, 1080.19995, 0, 0, 90 ), createObject ( 2164, 599.5, -244.89999, 1080.19995, 0, 0, 90 ), createObject ( 2202, 599.70001, -251.2, 1080.09998, 0, 0, 85.297 ), createObject ( 2202, 599.79999, -249.10001, 1080.09998, 0, 0, 86.476 ), createObject ( 2164, 599.5, -246.7, 1080.19995, 0, 0, 90 ), createObject ( 2007, 599.70001, -257.29999, 1080, 0, 0, 90.952 ), createObject ( 2007, 599.70001, -256.29999, 1080, 0, 0, 90.284 ), createObject ( 2007, 599.70001, -255.3, 1080, 0, 0, 89.316 ), createObject ( 2007, 599.70001, -254.3, 1080, 0, 0, 89.313 ), createObject ( 2007, 599.70001, -253.3, 1080, 0, 0, 89.313 ), createObject ( 1491, 616.90002, -262.70001, 1080.09998 ), createObject ( 10184, 625.29999, -263.10001, 1082.59998, 0, 0, 88.99 ), createObject ( 1705, 622.29999, -240.39999, 1080, 0, 0, 296.718 ), createObject ( 1705, 622.70001, -248.39999, 1080, 0, 0, 239.952 ), createObject ( 1705, 622.79999, -245.60001, 1080, 0, 0, 267.633 ), createObject ( 1705, 622.79999, -244.39999, 1080, 0, 0, 267.632 ), createObject ( 1705, 622.79999, -243.2, 1080, 0, 0, 267.632 ), createObject ( 1705, 622.79999, -242, 1080, 0, 0, 267.632 ), createObject ( 1705, 622.79999, -246.8, 1080, 0, 0, 267.632 ), createObject ( 1705, 615, -240.89999, 1080, 0, 0, 24.714 ), createObject ( 1705, 616.40002, -240.39999, 1080, 0, 0, 1.972 ), createObject ( 1705, 617.59998, -240.39999, 1080, 0, 0, 1.967 ), createObject ( 1705, 618.79999, -240.39999, 1080, 0, 0, 1.967 ), createObject ( 1705, 620, -240.39999, 1080, 0, 0, 1.967 ), createObject ( 14597, 612, -226.2998, 1082, 0, 359.926, 270.441 ), createObject ( 3093, 613.09998, -239.8, 1081.09998, 0, 0, 269.539 ), createObject ( 3093, 613.09998, -239.8, 1081.40002, 0, 0, 269.539 ), createObject ( 3093, 610.09998, -239.8, 1081.40002, 0, 0, 269.539 ), createObject ( 3093, 611.20001, -239.60001, 1084.09998, 0, 0, 269.539 ), createObject ( 3093, 611.90002, -239.60001, 1084.09998, 0, 0, 269.539 ), createObject ( 1997, 624.20001, -251.8, 1080, 0, 0, 270.756 ), createObject ( 1997, 627.20001, -251.8, 1080, 0, 0, 270.753 ), createObject ( 1997, 630.09998, -251.8, 1080, 0, 0, 270.753 ), createObject ( 1997, 633.70001, -251.8, 1080, 0, 0, 270.753 ), createObject ( 1997, 633.70001, -259.29999, 1080, 0, 0, 270.753 ), createObject ( 1997, 630.20001, -259.29999, 1080, 0, 0, 270.753 ), createObject ( 1997, 627.40002, -259.20001, 1080, 0, 0, 270.753 ), createObject ( 1997, 624.59998, -259.29999, 1080, 0, 0, 270.753 ), createObject ( 1997, 621.79999, -262, 1080, 0, 0, 270.753 ), createObject ( 1997, 616.09998, -262, 1080, 0, 0, 270.753 ), createObject ( 1997, 608.59998, -240.39999, 1080, 0, 1.978, 88.76 ), createObject ( 1997, 605.09998, -240.39999, 1080, 0, 1.972, 88.759 ), createObject ( 1997, 614.20001, -263.89999, 1080, 0, 1.972, 181.81 ), createObject ( 1997, 614.20001, -266.79999, 1080, 0, 1.967, 181.807 ), createObject ( 1997, 609.70001, -270.79999, 1080, 0, 1.967, 89.098 ), createObject ( 1491, 608.70001, -235.39999, 1080, 0, 0, 90.059 ), createObject ( 1491, 608.70001, -226.10001, 1080, 0, 0, 89.49 ), createObject ( 1491, 615.40002, -235.39999, 1080, 0, 0, 90.055 ), createObject ( 1491, 615.29999, -226, 1080, 0, 0, 90.055 ), createObject ( 1998, 672.40002, -182.10001, 1026 ), createObject ( 1998, 617.09998, -237, 1080, 0, 0, 90.38 ), createObject ( 1998, 615.90002, -223.8, 1080, 0, 0, 0.302 ), createObject ( 1998, 607, -222.89999, 1080, 0, 0, 269.963 ), createObject ( 1998, 608.09998, -236, 1080, 0, 0, 181.128 ), createObject ( 2197, 617, -233, 1080, 0, 0, 89.538 ), createObject ( 2197, 617, -232.3, 1080, 0, 0, 89.533 ), createObject ( 2197, 617, -231.60001, 1080, 0, 0, 89.533 ), createObject ( 2197, 617, -230.89999, 1080, 0, 0, 89.533 ), createObject ( 2197, 617, -229, 1080, 0, 0, 89.533 ), createObject ( 2197, 617, -228.3, 1080, 0, 0, 89.533 ), createObject ( 2197, 617, -227.60001, 1080, 0, 0, 89.533 ), createObject ( 2197, 617, -226.89999, 1080, 0, 0, 89.533 ), createObject ( 2197, 607.29999, -229.10001, 1080, 0, 0, 270.035 ), createObject ( 2197, 607.29999, -228.39999, 1080, 0, 0, 270.033 ), createObject ( 2197, 607.29999, -227.7, 1080, 0, 0, 270.033 ), createObject ( 2197, 607.29999, -227, 1080, 0, 0, 270.033 ), createObject ( 2197, 607.29999, -231, 1080, 0, 0, 270.033 ), createObject ( 2197, 607.29999, -231.7, 1080, 0, 0, 270.033 ), createObject ( 2197, 607.29999, -232.39999, 1080, 0, 0, 270.033 ), createObject ( 2197, 607.29999, -233.10001, 1080, 0, 0, 270.033 ), createObject ( 3383, 624.79999, -233.89999, 1080, 0, 0, 90.223 ), createObject ( 3383, 624.79999, -225.60001, 1080, 0, 0, 90.22 ), createObject ( 3383, 599.40002, -233.89999, 1080, 0, 0, 270.645 ), createObject ( 3383, 599.29999, -226, 1080, 0, 0, 270.643 ), createObject ( 1806, 616.90002, -236.2, 1080, 0, 0, 91.515 ), createObject ( 1806, 616.70001, -223.7, 1080, 0, 0, 359.995 ), createObject ( 1806, 607.09998, -223.8, 1080, 0, 0, 268.83 ), createObject ( 1806, 607.20001, -236.3, 1080, 0, 1.978, 181.564 ), createObject ( 2010, 615.09998, -248.5, 1080.09998 ), createObject ( 2010, 614.70001, -239.10001, 1080.09998 ), createObject ( 2010, 619, -249.3, 1080.09998 ), createObject ( 2010, 615.09998, -244.7, 1080.09998 ), createObject ( 2010, 609.70001, -239.10001, 1080.09998 ), createObject ( 14604, 620, -230.5, 1081, 0, 0, 179.917 ), createObject ( 14604, 604.40002, -230.5, 1081, 0, 0, 179.912 ), createObject ( 14604, 620, -229.3, 1081, 0, 0, 0.549 ), createObject ( 14604, 604.5, -229.3, 1081, 0, 0, 0.544 ), createObject ( 2315, 618.40002, -244, 1080, 0, 0, 269.62 ), createObject ( 2813, 618.40002, -245.7, 1080.5 ), createObject ( 2813, 618.40002, -243.89999, 1080.5 ), createObject ( 1752, 618.20001, -244.7, 1080.5, 0, 0.989, 89.244 ), createObject ( 1491, 612.79999, -222, 1080, 0, 0, 179.451 ), createObject ( 2167, 609.70001, -213.2, 1080 ), createObject ( 2167, 610.59998, -213.2, 1080 ), createObject ( 2167, 611.5, -213.2, 1080 ), createObject ( 2167, 612.40002, -213.2, 1080 ), createObject ( 2167, 613.29999, -213.2, 1080 ), createObject ( 2167, 614.20001, -213.2, 1080 ), createObject ( 1768, 609.59998, -221.2, 1080, 0, 0, 90.233 ), createObject ( 1768, 614.29999, -219.2, 1080, 0, 0, 270.108 ), createObject ( 1433, 609.59998, -218.2, 1080.19995 ), createObject ( 1433, 614.20001, -218.2, 1080.19995 ), createObject ( 2195, 609.59998, -218.2, 1081.30005 ), createObject ( 2195, 614.29999, -218.2, 1081.30005 ), createObject ( 2817, 609.70001, -214.89999, 1080 ), createObject ( 2817, 612.40002, -220.3, 1080, 0, 0, 90.335 ), createObject ( 2817, 613.09998, -214.89999, 1080 ) } -- Put them standby for now. for _, object in ipairs( objects ) do setElementDimension( object, 65535 ) setElementDoubleSided(object, true) end local col = createColSphere(635.24976,-255.57161,1081.03284,50) local function watchChanges( ) local lpDim = getElementDimension( getLocalPlayer( ) ) local oDim = getElementDimension( objects[1] ) if lpDim > 0 and lpDim ~= oDim and getElementInterior( getLocalPlayer( ) ) == getElementInterior( objects[1] ) then for _, object in ipairs( objects ) do setElementDimension( object, lpDim ) end elseif lpDim == 0 and oDim ~= 65535 then for _, object in ipairs( objects ) do setElementDimension( object, 65535 ) end end end addEventHandler( "onClientColShapeHit", col,function( element ) if element == getLocalPlayer( ) then addEventHandler( "onClientRender", root, watchChanges ) end end) addEventHandler( "onClientColShapeLeave", col,function( element ) if element == getLocalPlayer( ) then removeEventHandler( "onClientRender", root, watchChanges ) end end)
  21. Well, it's a smart idea to have one event and call all the functions that would need it, at the same time no it shouldn't impact server performance and if it did then probably a little, but it does reduce the size of the file as more char's or string's would make the size more larger.
  22. This is nice, I'll for sure download the source code and try to help.
  23. Do you mean showing all the players that's in the server? By Name?
×
×
  • Create New...