-
Posts
249 -
Joined
-
Last visited
Everything posted by _DrXenon
-
Thnx dude... Now i understood!
-
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?
-
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
-
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..
-
I know it was just for a better looking D: Anyway thanks for link!
-
Radar or minimap. _. ?
-
Idk if that work.. OnClientKey < event. Check its parameters
-
Set it as 50, becuz thats possible.. I am pretty sure that 50ms is just like 40ms or 30ms.
-
But this may disable the movement of the car.
-
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
-
I didnt understand your idea but.. Did you mean that you want to set the player animation as talking when chatting?
-
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..
-
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
-
Dont use 'createPed' as name for your function.
-
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
-
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'
-
Maybe something like If getElementType( arg ) == "ped" If getElementType( arg ) == "player"
-
If i can understand your latest reply, i might help.. So can you reply again? Be more clear.
-
GetVehicleModel function exists? I don't think so, use getElementModel.
-
Use the functions i mentioned in client file And the functions iiyama mentioned in serverside files
-
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 -.- )
-
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...
-
I couldn't see the whole code.. but you sure that the scrollbar is created as part of list?