Jump to content

_DrXenon

Members
  • Posts

    249
  • Joined

  • Last visited

Everything posted by _DrXenon

  1. Thnx dude... Now i understood!
  2. Timer triggered when marker data is false.. And when its triggered i set the data as true.. then after 10 mins i set marker data to false. That means its not triggered every second And yeah its client. But why it would be different for different players?
  3. I have an idea: first of all, createSWATRope if this function is possible... ( between the car and the player that is gonna pull ) Anyway, second of all, warp a ped to that vehicle ( that you want to pull ) then set the ped alpha ( that you created ) to 0 and warp him to vehicle with: setElementAlpha and warpPedIntoVehicle. Then use the input functions: setPedAnalogControlState and getPedAnalogControlState to get the state of the player that pull the car and to set it for the ped that is in the car ( that have alpha as 0 ) like : if getPedAnalogControlState(you,"forwards") == 1 then setPedAnalogControlState(ped,"accelerate",1) end
  4. _DrXenon

    20 lines

    It doesn't output, so it does mute?
  5. Hey community! As far as i know, a Marker is an element. And recently i have been trying to store some data in a marker with (setElementData) , and data is being saved. Anyway the problem is that players see different data when they hit the marker, while they should all see the same data .-.! And the data is a math random. Example: marker = createMarker(0,0,3,"cylinder",1.5,255,0,0) local cars = { {445}, {604}, {507}, {585}, {587}, {466}, {492}, {546}, {551}, {516}, } function setData() if not getElementData(marker,"working") then setElementData(marker,"working",true) local firstCol = math.random(#cars) local veh = getVehicleNameFromModel(cars[firstCol][1]) setElementData(marker,"firstCar",veh) setTimer(function() setElementData(marker,"working",false) end,600000,1) end end setTimer(setData,1000,0) Thats how i set the data of the Marker. Anyway, When player hits the marker: addEventHandler("onClientMarkerHit",marker,function(hit) dxDrawText(getElementData(marker,"firstCar"), 353, 241, 668, 304, tocolor(0, 230, 32, 254), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end ) So when players hit the marker, they see different texts than others. Like first player sees : Cheetah, another one sees : Infernus... While they all should see the same thing, As they see the Marker Data. So whats wrong with marker or script ? Even if i reconnected, when i hit the marker, i may see different text..
  6. _DrXenon

    20 lines

    One more thing! Add the resource to the Admin ACL
  7. I know it was just for a better looking D: Anyway thanks for link!
  8. Idk if that work.. OnClientKey < event. Check its parameters
  9. Set it as 50, becuz thats possible.. I am pretty sure that 50ms is just like 40ms or 30ms.
  10. But this may disable the movement of the car.
  11. You have to add the event in client file: addEvent("name",true) then to trigger the event: addEventHandler("name",root,function) Just like ADCX said.. Else ,your client side function is missed up..or got smthing wrong
  12. I didnt understand your idea but.. Did you mean that you want to set the player animation as talking when chatting?
  13. Just saying, in setTimer(function() end,50,1) 50 isn't 50 seconds but milliseconds... So setting a timer for 50ms is just like not setting..
  14. i am also new for SQL thingy... but i used: executeSQLQuery("SELECT * FROM sqldataName ( column, column) ") or something like that, anyway you may also check wiki.multitheftauto.com
  15. Dont use 'createPed' as name for your function.
  16. Google translator sucks, but anyway.. You want the progress bar to be filled as long as the player is in the territory ... ? What do you mean by 'attack'. If you can answer that i will help, else i will try to..help
  17. x,y = guiGetScreenSize() -- to add it on center use: x*0.5,y*0.5 as x,y values -- not exactly in center.. just an example -- to add it on top right try: x*0.9,y*0.2 as x,y values There are width and height values also, don't forget em'
  18. Maybe something like If getElementType( arg ) == "ped" If getElementType( arg ) == "player"
  19. If i can understand your latest reply, i might help.. So can you reply again? Be more clear.
  20. GetVehicleModel function exists? I don't think so, use getElementModel.
  21. Use the functions i mentioned in client file And the functions iiyama mentioned in serverside files
  22. Yeah, that message show when you have any kind of Hack/Trainer is opened, even if its not for MTA (I was kicked once for having CAEU hack opened -.- )
  23. Well, Try : I didn't try it, as i didn't download it... But you may try this: exports.notifications:showBox("info","text") for first message type... exports.notifications:showBox("error","text") for second message type... exports.notifications:showBox("warning","text") for third message type...
  24. I couldn't see the whole code.. but you sure that the scrollbar is created as part of list?
×
×
  • Create New...