Jump to content

Deepu

Members
  • Posts

    354
  • Joined

  • Last visited

Everything posted by Deepu

  1. what are you trying to tell friend and please explain
  2. I can't find the function for the peds to follow me. what is the function? Just give me the function thanks in advance and its urgent PS: I checked Wiki and I am confused any help would be appreciated and also I want it like the cop job where the arrested guys follow me (not for cop job or not for players)
  3. ok thanks socailZ I wanted this now I can learn this getElementData thanks very much :) I appreciate your kindness
  4. when does this work? and where shall I place these datas?
  5. the script I used to test yours is like this thePlayer = getLocalPlayer () local x,y,z = getElementPosition(thePlayer) local aa = createMarker(x + 5,y,z - 1, "cylinder", 2, 255, 2, 0, 255) function mainFunction (hitElement) function ZeroSeeds() dxDrawText("Seeds : 0", 697, 580, 842, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 697, 578, 842, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 580, 840, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 578, 840, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 696, 579, 841, 651, tocolor(248, 245, 14, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) end function MoreSeeds() dxDrawText("Seeds : 50", 697, 580, 842, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 50", 697, 578, 842, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 50", 695, 580, 840, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 50", 695, 578, 840, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 50", 696, 579, 841, 651, tocolor(248, 245, 14, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) end function open() opened = not opened if opened == true then addEventHandler("onClientRender", getRootElement(), ZeroSeeds) else removeEventHandler("onClientRender", getRootElement(), ZeroSeeds) addEventHandler("onClientRender", getRootElement(), MoreSeeds) end end end addEventHandler("onClientMarkerHit", aa, mainFunction) mhmm.... no errors but doesnt work
  6. yeah but I tested it and it doesnt work when I hit the wanted marker it doesnt change to seeds : 50 why?
  7. KRZO the thing that changes it is onClientRender() and the place is on marker B hit you know it?
  8. KRZO you know abt this? frankly speaking Do you? if you know please help by giving examples or editing mine cuz This is not the script that I am going to use or sell or give or do somthng its for me to make another script like this but not this a totally differnet one got it friendly helpers?
  9. addEventHandler("onClientRender", root, function() dxDrawText("Seeds : 0", 697, 580, 842, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 697, 578, 842, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 580, 840, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 578, 840, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 696, 579, 841, 651, tocolor(248, 245, 14, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) end ) ok? now this is the edit I am thinking off but doesnt work Told ya I am new to getElementData () I know those getPlayerCount and all look local pup = getElementData(thePlayer, "jobs") then I did addEventHandler ( "onClientRender", root, function ( ) dxDrawText ( tostring ( getElementData ( thePlayer, "Job" ) ), 0, 0, 0, 0 ) end ) it doesnt work -.- Told you -.- I dunno abt getElementData without you showing an ex: I have read wiki
  10. can't u give an example? not just the seeds just give an example of guns or something Can't You !?!
  11. look at this ..... addEventHandler("onClientRender", root, function() dxDrawText("Seeds : 0", 697, 580, 842, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 697, 578, 842, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 580, 840, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 578, 840, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 696, 579, 841, 651, tocolor(248, 245, 14, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) end ) function theTractor () triggerServerEvent("onChoot", thePlayer) end addEventHandler("onClientMarkerHit", markerB, theTractor) function A (hitElement) if hitElement == thePlayer then if isPedInVehicle(thePlayer) then if isElementWithinMarker(hitElement, markerA) then aa = createMarker(x + 5,y,z - 1, "cylinder", 2, 255, 2, 0, 255) addEventHandler("onClientRender", root, function() dxDrawText("1/50", 699, 394, 852, 514, tocolor(224, 238, 16, 255), 2.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("TAKE A COMBINE HARVESTER WHEN READY ", 533, 448, 635, 477, tocolor(182, 130, 5, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawText("Seeds : 49", 673, 482, 881, 546, tocolor(195, 226, 20, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) dxDrawText ( tostring ( getElementData ( localPlayer, "Job" ) ), 0, 0, 0, 0 ) end ) end end end end addEventHandler("onClientMarkerHit", markerA, A) it doesnt work what I want is that I wanna replace the Seeds: 0 thing in the first function it doesnt replace seeds with the new one
  12. I will show you the script alright Made? addEventHandler("onClientRender", root, function() dxDrawText("Seeds : 0", 697, 580, 842, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 697, 578, 842, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 580, 840, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 578, 840, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 696, 579, 841, 651, tocolor(248, 245, 14, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) end ) function theTractor () triggerServerEvent("onChoot", thePlayer) end addEventHandler("onClientMarkerHit", markerB, theTractor) function A (hitElement) if hitElement == thePlayer then if isPedInVehicle(thePlayer) then if isElementWithinMarker(hitElement, markerA) then aa = createMarker(x + 5,y,z - 1, "cylinder", 2, 255, 2, 0, 255) addEventHandler("onClientRender", root, function() dxDrawText("1/50", 699, 394, 852, 514, tocolor(224, 238, 16, 255), 2.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("TAKE A COMBINE HARVESTER WHEN READY ", 533, 448, 635, 477, tocolor(182, 130, 5, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawText("Seeds : 49", 673, 482, 881, 546, tocolor(195, 226, 20, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) end ) end end end end you can edit that now/?
  13. I will show you the script alright Made? addEventHandler("onClientRender", root, function() dxDrawText("Seeds : 0", 697, 580, 842, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 697, 578, 842, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 580, 840, 652, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 695, 578, 840, 650, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) dxDrawText("Seeds : 0", 696, 579, 841, 651, tocolor(248, 245, 14, 255), 1.00, "default-bold", "left", "top", true, true, true, true, false) end ) function theTractor () triggerServerEvent("onChoot", thePlayer) end addEventHandler("onClientMarkerHit", markerB, theTractor) function A (hitElement) if hitElement == thePlayer then if isPedInVehicle(thePlayer) then if isElementWithinMarker(hitElement, markerA) then aa = createMarker(x + 5,y,z - 1, "cylinder", 2, 255, 2, 0, 255) addEventHandler("onClientRender", root, function() dxDrawText("1/50", 699, 394, 852, 514, tocolor(224, 238, 16, 255), 2.00, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("TAKE A COMBINE HARVESTER WHEN READY ", 533, 448, 635, 477, tocolor(182, 130, 5, 255), 1.00, "default", "left", "top", false, false, true, false, false) dxDrawText("Seeds : 49", 673, 482, 881, 546, tocolor(195, 226, 20, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) end ) end end end end you can edit that now/?
  14. man look Leave the seeds, how can I update some thing on the gui like drugs ?
  15. man, you think I don't know scripting? nopee. I have made 50 scripts and sold them for free i never done this seeds data update thing before so I asked cuz I already made farmer job
  16. but how do I make the current seeds and all? how do I update the DxDrawText? please write the codes? with xyz screen size and all that thanks
  17. How do you this thing? I made the rest of my farmer job I need the one like this : in the right corner down there is "Seeds: 0" and when I click the 50 seeds button then it changes to "seeds: 50" how do I do that? and also when I Plant some seeds, there comes a counter ====> " 1/50" "2/50" and at last when its "50/50" it says "you're out of seeds" How do I do that thing? Also please teach me here is the pics http://imgur.com/stMUCPG http://imgur.com/7GAhHC9 http://imgur.com/4bYNyAD http://imgur.com/e9CyC9V http://imgur.com/FL8XV2w and thanks in advance and its so urgent I want the answer by tommorrow thanks again and please ITS VERY URGENT SORRY FOR THE DIFFICULTIES YOU FACED IN HELPING ME
  18. also thanks friends for making me think and of course for helping me
  19. Worked ! close the topic please I am a mad guy man I had put source == markerB where marker B is in local
  20. it just says expected element at Argument 2 line 20 got nil which means the markerB thing was created on markerA hit. The thing is that at the second function, the marker is not seen by the server thats the problem How to make the server realise that a marker was created on marker hit
  21. Doesnt work wassim It used to work but now I am having errors
  22. Yeah it says expected element at argument 2 got nil at event Handler line 20 which means the server thinks that marker B is not created
  23. Sorry for double posting but this is urgent I mean really urgent ! Please help me again who is experienced at this ... as per TAPL said I used if source == markerB then look this the test script thePlayer = getLocalPlayer () local x,y,z = getElementPosition(thePlayer) local markerA = createMarker(x,y + 3,z, "cylinder", 2, 255, 2, 0) function makae (hitElement) if hitElement == thePlayer then local markerB = createMarker(x,y + 6,z, "cylinder", 2, 255, 2, 0) end end addEventHandler("onClientMarkerHit", markerA, makae) function giga (hitElement) if hitElement == thePlayer then if source == markerB then setElementHealth(thePlayer, 20) end end end addEventHandler("onClientMarkerHit", getRootElement(), giga) please Help ! Please edit the full script and post the full script and thanks in advance
×
×
  • Create New...