Jump to content

hackermagus

Members
  • Posts

    25
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

hackermagus's Achievements

Advanced Member

Advanced Member (8/54)

0

Reputation

  1. Okay, I don't get any error message but the vehicle is currently go faster then 30 km/h. I try setPedControlState(ped, "accelerate", false) But it's not help.
  2. local vehicle = createVehicle(596, 2392.09009, -1729.73193, 13.38281, 0, 0, 90) local ped = createPed(281, 2400, -1735, 13.38281) setVehicleSirensOn(vehicle, true) warpPedIntoVehicle(ped, vehicle) setPedControlState(ped, "accelerate", true) addEventHandler("onClientResourceStart", root, function () local ownSpeed = getElementSpeed(vehicle, 1) end) Like this? This not work to
  3. Hi I made a script local vehicle = createVehicle(596, 2392.09009, -1729.73193, 13.38281, 0, 0, 90) local ped = createPed(281, 2400, -1735, 13.38281) local ownSpeed = getElementSpeed(vehicle, 1) setVehicleSirensOn(vehicle, true) warpPedIntoVehicle(ped, vehicle) setPedControlState(ped, "accelerate", true) if (ownSpeed > 29) then setPedControlState(ped, "brake_reverse", true) end And when I start the game in debugscript 3 it says "attempt to call global 'getElementSpeed' (a nil value)'"
  4. Ohh... And how can I do to make the vehicle move?
  5. I made a script local vehicle = createVehicle(596, 2392.09009, -1729.73193, 13.38281, 0, 0, 90) local ped = createPed(281, 2400, -1735, 13.38281) warpPedIntoVehicle(ped, vehicle) moveObject(vehicle, 30000, 2229.23389, -1729.73193, 13.38281) And as you can see, I want the vehicle to move on posX 2229.23389 in 30 seconds, but it not working. It creates the vehicle, the ped, insert the ped into the vehicle, but it not moving.
  6. https://drive.google.com/file/d/1ZBAJXL5H_o2Xfc15ggXSTOAFAZHr4UPD/view?usp=sharing I made a video to show my problem and I'm not the best at english so I dont know to write it.. But (video) the red marker is knows when I go in that in chat box there are shown my text but I want to show when I go into the yellow marker. The red marker is from a script and this script types is map. I made a script to the yellow marker: local myMarker = createMarker(1675.8000488281, -1004.5, 23.10000038147, 'cylinder', 1, 191, 148, 0, 255) -- create myMarker function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler local elementType = getElementType( hitElement ) -- get the hit element's type outputChatBox( "ASdasdasdasdasdasdasdasd" ) -- attach the element's type with the text, and output it end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) -- attach onMarkerHit event to MarkerHit function And I know the createMarker position is the yellow marker position not the red one. I hope you understand what i write xd Thanks for helping
  7. I made a script function drawPanel() dxDrawRectangle(406.0,277.0,650.0,235.0,tocolor(0,0,0,175),false) dxDrawLine(447.0,318.0,1005.0,318.0,tocolor(255,255,255,255),1.0,false) dxDrawText("Rádió",456.0,285.0,642.0,319.0,tocolor(0,0,0,255),1.0,"pricedown","left","top",false,false,false) dxDrawText("Rádió",451.0,289.0,637.0,323.0,tocolor(255,255,0,170),1.0,"pricedown","left","top",false,false,false) end function openandclose() if removeEventHandler("onClientRender", root, drawPanel) then removEventHandler("onClientRender", root, drawPanel) guiSetVisible(prev, false) guiSetVisible(nxt, false) else addEventHandler("onClientRender", root, drawPanel) guiSetVisible(prev, true) guiSetVisible(nxt, true) end end bindKey("r","down",openandclose) prev = guiCreateButton(453, 335, 35, 35, "<", false) guiSetFont (prev, "default-bold-small") nxt = guiCreateButton(999, 335, 35, 35, ">", false) guiSetFont (nxt, "default-bold-small") And the buttons show up everytime if the visible or not.. The debugscript 3 says: "Attempt to call global'removeEventHandler' (a nil value)" How to solve that?
  8. It's worked thank you! And how can I do when the panel not showed up and I press "r" it showing up and when it's showed up and I press "r" it not showing up
  9. Hy all' I made this script bindKey ( "r", "down", dxWindow ) function dxWindow() dxDrawRectangle(406.0,277.0,650.0,235.0,tocolor(0,0,0,175),false) dxDrawLine(447.0,318.0,1005.0,318.0,tocolor(255,255,255,255),1.0,false) dxDrawText("Rádió",456.0,285.0,642.0,319.0,tocolor(0,0,0,255),1.0,"pricedown","left","top",false,false,false) dxDrawText("Rádió",451.0,289.0,637.0,323.0,tocolor(255,255,0,170),1.0,"pricedown","left","top",false,false,false) dxDrawText("Parancsok:",453.0,335.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("/vs - Visszaszámláló indítása",478.0,350.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("/enableauto - Autómatikus bejelentkezés engedélyezése (amennyiben van már regisztrált fiókod)",478.0,365.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("/disableauto - Autómatikus bejelentkezés letiltása (amennyiben van már regisztrált fiókod)",478.0,380.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("Gombok:",453.0,395.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("F1 - Freeroam menü",478.0,410.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("F2 - Teleportok",478.0,425.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("F5 - Telefon",478.0,440.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("F6 - Segítség",478.0,455.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("F11 - Térkép",478.0,470.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("K - Tempomat",478.0,485.0,637.0,323.0,tocolor(255,255,255,170),1.0,"default-bold","left","top",false,false,false) dxDrawText("Az F6 - tal zarhatod be",650.0,655.0,200.0,200.0,"pricedown","left","top",false,false,false) end And it's not working.. I turn on the debugscript 3 and it says "Bad argument @ 'bindKey' [Expected function at argument 3 got nil]" How can I solve that?
  10. If I spawn a vehicle thats ok and I know to spawn another. But when l want to spawn like 5 thats not possible because I only know to spawn 2 vehicles. How can I solve that?
×
×
  • Create New...