Jump to content

Deepu

Members
  • Posts

    354
  • Joined

  • Last visited

Everything posted by Deepu

  1. man... I made a phone, an awesome bomber script, all cute jobs, the3Dmarkers(like in CIT), 3D texts in mta world, fun scripts like roller coaster and shit like that ..... Many more I am new to getElementData I am not understanding alright? I can make anything else but not getElementData cuz i am learning it
  2. I just need help with getElementData() its worth a try so I thought I would be making drugs thing for my server can you give me the codes of the drugs thing? the function needs the foll: when a player hits a marker he gets 5 weed and 5 heroin when he has 0 drugs but when a player already has drugs like 5 weed or 6 heroin then it becomes 5+1 or 5+2 or ......... 5+n if a player uses heroin then it says "heroin 5" if he uses again it comes "heroin 4" how can I make that? PS: this is not for commercial or server purposes its so that I can learn it cuz I got many other these things to make so please coordinate with me and help me learn the codes PS: If you are free please explain the codes and help and explain the getElementData() usage please................
  3. SO I CANT USE IT GLOBALLY? should I use as a local function?
  4. thanks manv It worked by the way, what did you do? is it the same "destroyElement(blipD)" ?
  5. bad argument at setblip size cuz 0 can't be possible
  6. how do I destroy blip? please tell function requestNewMarkers () local poopMarkers = { {1816.8000488281, -2517.1000976563, 12.60000038147}, {-1348.6999511719, -235, 13.199999809265}, {416.20001220703, 2503.8000488281, 15.5}, {1572.0999755859, 1472.1999511719, 10.800000190735}, } local x,y,z = unpack(poopMarkers[math.random(#poopMarkers)]) reach = createMarker(x,y,z) guiSetVisible(jobWindow, false) local blip = createBlipAttachedTo(reach, 51) end function LS (hitElement) if source == reach then if hitElement == thePlayer then triggerServerEvent("onChakka", thePlayer, "yokohama") destroyElement(reach) setTimer(requestNewMarkers, 5000, 1) destroyElement(blip) end end end addEventHandler("onClientMarkerHit", getRootElement(), LS)
  7. by the way thanks citizen it worked and do you know how to add different functions to each random marker? I know its impossible but someway?
  8. and the blip anubhav? the blip wont work I tried blip with poopMarkers, x,y,z and "poopMarkers" help
  9. the prob is that I am new to random markers ...........
  10. function takeJob () if source == taker then destroyElement(pilot) noMarker = createMarker(1953.6999511719, -2178.3000488281, 13.5, "cylinder", 3, 170, 240, 10, 0) triggerServerEvent("onTakka", thePlayer, "yo") requestNewMarkers() guiSetVisible(jobWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getRootElement(), takeJob) function cancelJob () if source == canceler then guiSetVisible(jobWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getRootElement(), cancelJob) function requestNewMarkers () local poopMarkers = { {1816.8000488281, -2517.1000976563, 12.60000038147}, {-1348.6999511719, -235, 13.199999809265}, {416.20001220703, 2503.8000488281, 15.5}, {1572.0999755859, 1472.1999511719, 10.800000190735}, } local ran = math.random(#poopMarkers, 4) reach = createMarker(poopMarkers[ran][1], poopMarkers[ran][2], poopMarkers[ran][3], "cylinder", 3, 241, 227, 13) guiSetVisible(jobWindow, false) createBlipAttachedTo(reach, 51) end function otherMarker () local poopMarkers = { {1816.8000488281, -2517.1000976563, 12.60000038147}, {-1348.6999511719, -235, 13.199999809265}, {416.20001220703, 2503.8000488281, 15.5}, {1572.0999755859, 1472.1999511719, 10.800000190735}, } local ran = math.random(#poopMarkers, 4) screach = createMarker(poopMarkers[ran][1], poopMarkers[ran][2], poopMarkers[ran][3], "cylinder", 3, 241, 227, 13) guiSetVisible(jobWindow, false) createBlipAttachedTo(screach, 51) end function LS (hitElement) if source == reach then if hitElement == thePlayer then triggerServerEvent("onChakka", thePlayer, "yokohama") otherMarker() end end end addEventHandler("onClientMarkerHit", getRootElement(), LS) the thing is, the function of the random markers doesnt work look if I hit reach then screach wont be created where screach will be different markers
  11. wrong code but my code worked thanks anyway
  12. the clicks are correct I tested it with outPutChatBox it works
  13. PLEASE its urgent and I need help with the script of my bomber job its as follows: the markers wont spawn and no errors yeah but it says table generator is absent function accept () if source == taker then triggerServerEvent("onKakka", thePlayer, "yo") local bombMarkers = { {1173.9000244141, -1355.0999755859, 12.89999961853, "cylinder", 1, 255, 2, 0}, {891.79998779297 , -1251.0999755859 , 14.89999961853, "cylinder", 1, 255, 2, 0}, {2659.6999511719 , -1438.5 , 29.5, "cylinder", 1, 255, 2, 0}, {1390.6473388672 , -1567.6746826172 , 12.604599952698, "cylinder", 1, 255, 2, 0}, {1215.8259277344 , -1667.3760986328 , 10.77110004425, "cylinder", 1, 255, 2, 0}, {1103.1510009766 , -1452.7386474609 , 14.775799751282, "cylinder", 1, 255, 2, 0}, {1802.6999511719 , -1286.9000244141 , 12.60000038147, "cylinder", 1, 255, 2, 0}, {2668.6999511719 , -1766.9000244141 , 10.89999961853, "cylinder", 1, 255, 2, 0}, {2200.1999511719 , -2222.1999511719 , 14.199999809265, "cylinder", 1, 255, 2, 0}, {1109.0999755859 , -1791.8000488281 , 15.60000038147, "cylinder", 1, 255, 2, 0}, } for markerid,_ in ipairs do local ran = math.random(#bombMarkers) reach = createMarker(bombMarkers[ran][1], bombMarkers[ran][2], bombMarkers[ran][3]) guiSetVisible(jobWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", getRootElement(), accept)
  14. Deepu

    MOOON

    tails I dont want a moon now, but thanks for the help so now I can make terrains
  15. maybe you can make use of my airstrike and plane bomb script feel free to edit it too
  16. what is resource flight?
  17. Deepu

    is this nice?

    your e-penis is big? OMG <3 I wanna see it please
  18. Deepu

    is this nice?

    KRZO my code is wrong ..... random markers? I am new to that but farmer? I made it bro and random markers === I learnt it now
  19. Can you help me with random markers? these markers come altogether function moon2 () destroyElement(reach) setElementPosition(thePlayer, 660.90002441406, -3290.3999023438, 5) m1 = createMarker(692.7001953125, -3341.599609375, -3, "cylinder", 1, 5, 250, 45) m2 = createMarker(664.09997558594, -3288.8999023438, 4.8000001907349, "cylinder", 0.5, 170, 240, 10) m3 = createMarker(683.90002441406, -3291, 5, "cylinder", 0.5, 170, 240, 10) m4 = createMarker(701.20001220703, -3260.5, 4.0999999046326, "cylinder", 0.5, 170, 240, 10) m5 = createMarker(712.59997558594, -3245.3999023438, 3.7000000476837, "cylinder", 0.5, 170, 240, 10) m6 = createMarker(745.20001220703, -3265.6999511719, 4.8000001907349, "cylinder", 0.5, 170, 240, 10) m7 = createMarker(759.59997558594, -3230.3000488281, 7.0999999046326, "cylinder", 0.5, 170, 240, 10) m8 = createMarker(816.59997558594, -3277.8000488281, 9.1999998092651, "cylinder", 0.5, 170, 240, 10) m9 = createMarker(841, -3328.8999023438, 17.299999237061, "cylinder", 0.5, 170, 240, 10) randomMarker = getElementByID("m"..math.random(2,9)) end addCommandHandler("moon", moon2) the script works but all markers come at the same time and not random
  20. can you make an example script for that? with something?
  21. Deepu

    map dimension

    thanks btw you know about random markers? I need help with that
  22. Deepu

    help pls

    i dint understand can you explain?
×
×
  • Create New...