-
Posts
662 -
Joined
-
Last visited
-
Days Won
15
Everything posted by Einheit-101
-
triggerServerEvent is one of the best ways to sync this manually and it seems to work for me, although i had no massive battles (yet) with my system. MTA does nothing else with the sync of vehicle dummies and other stuff, send all data once every 50-100ms to the server and he relays it to other clients. Dont even try to predict anything. That elementData thingy does practically the same like triggerServerEvent (Correct me if i`m wrong), you cant magically sync data faster or slower with it. Remember, triggerEvent just triggers an event, its no atomic bomb. However i recommend using a 50ms timer (or 100ms) instead of onClientRender to trigger the Server event / set the Data local update_timer = nil setTimer ( function () update_timer = setTimer ( updatePlayerWeapon, 50, 0 ) end, 500, 1 ) function updatePlayerWeapon () if isElement(TankVehicle) then local _, _, rz = --calculate Z rotation of misc_a local rx, _, _ = --calculate X rotation of misc_b --calculate more stuff setVehicleComponentRotation(TankVehicle, "misc_a", 0, 0, rz) --turret only rotates Z (horizontal) setVehicleComponentRotation(TankVehicle, "misc_b", rx, 0, 0) --barrel only rotates X (up and down) triggerServerEvent ("remoteSyncComponent", TankVehicle, rx, rz) --or setElementData(TankVehicle, "turretRot", {rx, rz}) end end I can't do more, sorry, busy with SAAW, but i plan to do this myself someday in 1-2 months.
-
With those 69 objects your map is still empty like a desert.
-
Forget this, MTA will not work if you try to fill this island with objects. The streamer will do the same thing to you like it did to my Berlin-Mitte.......
-
the crosshair is not precise? idk but you could try to reduce the z position of its dxDrawImage
-
maxVelocity handling setting doesnt work for the reverse gear, so beware.
-
just download newest vreload or manually remove setElementModel(projectile) out of the resource and it will not crash anymore
-
Attaching an object to the center and then attach another object to rotate it correctly is honestly a genius way to get around the offset calculations lol I do the same thing for a different usage GetVehicleModel is deprecated, use getElementModel lol
-
object_preview How to draw effect on DX drawing ?!
Einheit-101 replied to darhal's topic in Scripting
I will test it asap. €DIT::: It works. Finally http://i.imgur.com/5oq8tEv.jpg -
Created custom weapons arent synced and bugged and whatever man, dont even try to do this.... Someone started implementing something ages ago (like many things in MTA) and abandoned it unfinished. MTA development has almost stopped anyway...
-
object_preview How to draw effect on DX drawing ?!
Einheit-101 replied to darhal's topic in Scripting
Well, it looks like now not even standard objects work anymore. Only vehicles still work. Everything else is completely invisible (non-existent). -
object_preview How to draw effect on DX drawing ?!
Einheit-101 replied to darhal's topic in Scripting
Thx Ren! Will try the new Version ASAP! -
Don't try to Use MRT, 90% will have problems with their ancient pc's.
-
object_preview How to draw effect on DX drawing ?!
Einheit-101 replied to darhal's topic in Scripting
Hey guys... exports.object_preview:destroyObjectPreview() ...returns nil and does not work anymore. I hope the next version is coming soon €DIT: My 3D- Weapon shop works fine as soon as the remaining bugs are fixed. I hope you will catch them, Ren http://1.bp.blogspot.com/-eWNnlKFzfzs/V ... -12-57.png -
object_preview How to draw effect on DX drawing ?!
Einheit-101 replied to darhal's topic in Scripting
Nope... still doesnt work for me. It looks slightly different, its another kind of "transparency" now, looks almost like 10% Alpha or something. Still only happens for weapons. When using non-MRT, all weapons become fully invisible (they just are not there) -
object_preview How to draw effect on DX drawing ?!
Einheit-101 replied to darhal's topic in Scripting
Here is the video for all. I could give you my little "example shop" resource if you want, but its nothing special. -
object_preview How to draw effect on DX drawing ?!
Einheit-101 replied to darhal's topic in Scripting
Is it possible to prevent the object_preview from "flickering" as soon as the object preview is created or destroyed? I could offer a video showing this and other issues. -
Can i use those army Objects for my WW2 Server? Ofc all credit will go to you.
-
It was never cancelled, just paused. And it gets updated from time to time. But don't expect a release very soon.
-
MTA:Eir should include this already as far as I know... I don't think it's possible with current MTA 1.5, the streamer is already at it's limit...
-
PS2 Export Tool has been created while he researched the renderWare engine of GTA SA to improve his own knowledge about it. He also found a way to improve GTA SA's mipmaps. Both projects are finished. Mipmapping: GTA SA PS2 texture mod:
-
Whole table gets deleted when first element is removed?
Einheit-101 replied to Einheit-101's topic in Scripting
Well it suddenly works^^ I changed "table" to "thetable" as parameter, i dont know if that was the problem... It seems to work perfect now. Thanks -
Whole table gets deleted when first element is removed?
Einheit-101 replied to Einheit-101's topic in Scripting
Well there appears the following error: ERROR: tanks\tankclient.lua:20: attempt to call field 'remove' (a nil value) and line 20 is this: table.remove(table, index) Does MTA have a problem with table.remove?? -
"Sorry that it is taking so long. Eir is my dearest child and I am not going to give up on it." Quote from 2-3 Months ago
-
Whole table gets deleted when first element is removed?
Einheit-101 replied to Einheit-101's topic in Scripting
Thank you Walid, I try this asap! Ixjf, You mean, if I remove element 2 from a table and there are only elements 1, 3 and 4 left, ipairs will do it's job only with element 1 and stop, because there is no element 2? Using pairs will jump over 2 and continue with 3 and 4? I didn't think about that. Also, onClientElementStreamOut triggers together with onClientElementDestroy. That's just another bug and I have to remove onClientElementDestroy. Thx a lot, I will report back tomorrow if it works!