-
Posts
1,134 -
Joined
-
Last visited
-
Days Won
37
Everything posted by NeXuS™
-
You can't have 2 different models on the same car.
-
@#,+( _xiRoc[K]; > it's just formating, and it shouldn't generate any errors whichever version you use.
-
Problem with luac.mtasa.com
NeXuS™ replied to MIKI785's topic in Site/Forum/Discord/Mantis/Wiki related
Just use the page for it. -
Try to use isElement function.
-
In what order do you use the load functions?
-
@raynner, this is already a solved post, and was created back in April...
-
Are you sure that the TXD files are correct too?
-
Did you try to disable your firewall?
-
So, you'll have to use the returned variables. You have to add the 2 numbers to the position where you draw the image of the map.
-
Search for each function in your script and just use the File functions for it.
-
Nem tudom miért veszi ki, mert annak köze nincs a handlingFlags attributehoz. De ezzel működik. addCommandHandler("changetire", function(thePlayer, cmdName, newValue) if isPedInVehicle(thePlayer) then local pVeh = getPedOccupiedVehicle(thePlayer) local vehUpgrades = getVehicleUpgrades(pVeh) local hasHydra = false for i, k in ipairs(vehUpgrades) do if k == 1087 then hasHydra = true break end end local defHandling = string.reverse(string.format("%08x", getVehicleHandling(pVeh)["handlingFlags"])) local newHandling = string.sub(defHandling, 0, 2) .. newValue .. string.sub(defHandling, 5) outputChatBox("Default handling: " .. "0x" .. defHandling) outputChatBox("New handling: " .. "0x" .. newHandling) setVehicleHandling(pVeh, "handlingFlags", tonumber("0x" .. string.reverse(newHandling))) addedH = hasHydra and addVehicleUpgrade(pVeh, 1087) or false outputChatBox(addedH and "Readded hydraulics." or "Didn't have hydraulics.") end end)
-
Ahh, és tényleg, egy kicsit várj, megcsinálom. Nézd meg ezt. addCommandHandler("changetire", function(thePlayer, cmdName, newValue) if isPedInVehicle(thePlayer) then local pVeh = getPedOccupiedVehicle(thePlayer) local defHandling = string.reverse(string.format("%08x", getVehicleHandling(pVeh)["handlingFlags"])) local newHandling = string.sub(defHandling, 0, 2) .. newValue .. string.sub(defHandling, 5) outputChatBox("Default handling: " .. "0x" .. defHandling) outputChatBox("New handling: " .. "0x" .. newHandling) setVehicleHandling(pVeh, "handlingFlags", tonumber("0x" .. string.reverse(newHandling))) end end)
-
A projectcerbera oldalon lévő értékek szerint van a handling megcsinálva. Mire gondolsz?
-
Itt amiről te beszélsz, az alapból nincs benne a kocsiban, tehát 0 marad. (Blade) Default handling: 0x12010000 New handling: 0x12400000
-
Nem nyúl hozzá a HYDRAULIC GEOM flaghez, miután a value az ugyan az marad, melyik kocsinál próbálod?
-
I know a lot about MTA @Pirulax. So I'm sure that the given weapon is not an element, just a texture, as you modified your comment in your edit.
-
Nem. /changetire 11 -- Legkisebb /changetire 22 -- Kicsi /changetire 44 -- Nagy /changetire 88 -- Legnagyobb Ezeket tudod mixelni is.
-
Passing table from server side to client failed?
NeXuS™ replied to Protagonist95's topic in Scripting
triggerServerEvents can't return the values they get by the function "return". You have to make an another event on clientside to trigger it from the serverside and have the table as an arg in it. -
No, the weapon is not an element @Pirulax.
-
addEventHandler("onClientPreRender",root,function() for _,k in pairs(Element.getAllByType("player", true)) do local pts = k:getData("points") for i=1, #pts do dxDrawMaterialLine3D(pts[i][1],pts[i][2],pts[i][3],pts[i+1][1],pts[i+1][2],pts[i+1][3],texture,0.1) end end end) This'll only render lines towards the players who are streamed in for the localPlayer.
-
You don't understand it correctly @Pirulax.
-
The question will be followed by hungarian answers, so please move it to the Hungarian section. @Dutchman101