Jump to content

Machine

Members
  • Posts

    248
  • Joined

  • Last visited

Everything posted by Machine

  1. whats wrong in this code GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(270,216,449,476,"Maps Panel",false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,20,431,394,false,GUIEditor_Window[1]) for _, map in ipairs ( exports['mapmanager']:getMapsCompatibleWithGamemode ( 'race' ) ) do local row = guiGridListAddRow ( urGridList ) guiGridListSetItemText ( urGridList, row, 1, tostring ( getResourceInfo ( map, 'name' ) ), false, false ) end guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Button[1] = guiCreateButton(12,419,190,46,"Refresh Maps List",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(258,419,182,46,"Buy Map!",false,GUIEditor_Window[1]) guiSetVisible( GUIEditor_Window[1], false ) showCursor ( false ) function showGUI ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey ( "F2","down", showGUI )
  2. sorry my falt i made it server side hahaha!
  3. it keep giving me error about GUIEditor_Window[1] nil value
  4. GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(270,216,449,476,"Maps Panel",false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible( GUIEditor_Window[1], false ) showCursor ( false ) function showGUI ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey ( "F2","down", showGUI )
  5. Machine

    [HELP] Stage

    no one understand me lol
  6. ههههه مهو يا مستر العقاب يا اما عن طريق الايبي او عن طريق السيريال طبعا تغيير الايبي سهل جدا وبسيط اما تغيير السيريال صعب بس مش مستحيل
  7. يا اخ انت تقول 100 ريال في الشهر طيب ليش 150؟
  8. اعتقد حتى انك انت معاقب بواسطة السيريال في سيرفر معين صح؟ فانت بدك تزيل العقاب؟
  9. انا اسمع اخي عن برامج لتغيير السيريالات وحسب علمي اسمعت انه كل قرص اله سيريال خاص فيه مثل c او ي او f
  10. Valhalla roleplay script is depend on sql databases so you must install sql server on your pc or if you have paid server just tell the support people to add sql database for your server , note: valhalla roleplay script have alots of errors and its very hard so better use small roleplay script!
  11. Machine

    [HELP] Stage

    is it possible to make ped with stage and save them in map and just run map with ped without stage? so i just added to meta like this cous as i can see ped always made when i load scene using stage gui
  12. Machine

    [HELP] Here

    thanks alot its so cool!
  13. Machine

    [HELP] Here

    tried it give me error whats wrong? (aclGetGroup("Admin") ) local gate1 = createObject ( 980, 1264.2998046875, -2045.7998046875, 61.099998474121, 0, 0, 0 ) local status = false addCommandHandler ( "move", function ( ) if ( status ) then status = false moveObject ( gate1, 4000, 1264.2998046875, -2045.7998046875, 46.099998474121 ) else status = true moveObject ( gate1, 4000, 1264.2998046875, -2045.7998046875, 61.099998474121 ) end end )
  14. Machine

    [HELP] Here

    this gate moved great but how can i make it only for admins? local gate1 = createObject ( 980, -2085.8994140625, -213, 37.099998474121, 0, 0, 0 ) local status = false addCommandHandler ( "move", function ( ) if ( status ) then status = false moveObject ( gate1, 4000, -2085.8999023438, -213, 29.10000038147 ) else status = true moveObject ( gate1, 4000, -2085.8999023438, -213, 37.099998474121 ) end end )
  15. hello i made this marker to enter a place but problem is how make it in same time out from the place? using same markers enter = createMarker(1122.7998046875, -2036.8994140625, 70.5, "arrow", 1, 150, 0, 0, 255 ) function teleport(player) if getElementType(player)=="player" then if source == enter then setElementPosition(player, 1107.599609375, -2062.9, -51) setElementFrozen(player, false) setTimer(setElementFrozen, 1000, 1, player, false) end end end addEventHandler("onClientMarkerHit", getRootElement(), teleport)
  16. so how can i make it its impossible right?
  17. but i really need it is there any server side? or i must trigger to client event
  18. its exactly what i want but is it possible to make player get gun when he hit marker and when he out from it(preesed f) hes gun taken i think i must use giveWeapon ( thePlayer, 31, 200 ) takeWeapon ( thePlayer, 31, 5 ) but i tired didnt work!
  19. local marker = createMarker(-2596.625, 579.358, 14, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler("onClientMarkerHit",root, function(h) if h == localPlayer and source == marker then addEventHandler("onClientRender",root,drawText) setElementFrozen ( h, true ) end end ) function drawText() dxDrawText("Prees F To Exit!",423.0,601.0,623.0,637.0,tocolor(255,255,255,255),2.0,"clear","left","top",false,false,false) end addEventHandler("onClientMarkerLeave",root, function(h) if h == localPlayer and source == marker then removeEventHandler("onClientRender", root,drawText) setElementFrozen ( h, false ) bindKey ( "f", "down", h ) end end ) i just added bindkey so when you prees f quit from marker so forzen must be false and text disapear but didnt work
  20. whats wrong in this code local marker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler("onClientMarkerHit",root, function(h) if h == localPlayer and source == marker then addEventHandler("onClientRender",root,drawText) setElementFrozen ( player, true ) end end ) function drawText() dxDrawText("Prees F To Exit!",423.0,601.0,623.0,637.0,tocolor(255,255,255,255),2.0,"clear","left","top",false,false,false) end addEventHandler("onClientMarkerLeave",root, function(h) if h == localPlayer and source == marker then removeEventHandler("onClientRender", root,drawText) setElementFrozen ( player, false ) end end )
  21. is there any function to set player frozen but still can shoot and sniper around him self
  22. it work good but how can i make onplayer leave mark ,do i must use something like this? function markerLeave ( leavingPlayer, matchingDimension ) addEventHandler ( "onClientMarkerLeave", getRootElement(), markerLeave )
  23. hello i just made this script local marker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) function MarkerHit ( hitPlayer, matchingDimension ) dxDrawText("Prees F To Exit!",423.0,601.0,623.0,637.0,tocolor(255,255,255,255),2.0,"clear","left","top",false,false,false) setTimer ( MarkerHit, 1000, 10 ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) it dont have bugs but problem is that text come and disappear i wanna when player hit marker text come and when he leave it text disappear can help?
×
×
  • Create New...