![](https://forum.multitheftauto.com/uploads/set_resources_22/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
mafioz
Members-
Posts
81 -
Joined
-
Last visited
Everything posted by mafioz
-
Use event - onClientMarkerHit
-
local minutes = 5 function startTimer(player) setElementData(player,"piezas_timer",true) setTimer(setElementData,60000*minutes,1,player,"piezas_timer",nil) end function getPiezasContrabandistas (player) if getElementData(player,"piezas_timer") then return outputChatBox("The command can be used once every "..minutes.." minutes.", player, 255, 0, 0) end if not exports.factions:isPlayerInFaction(player, 9) then outputChatBox("No eres Contrabandista.", player, 255, 0, 0) return end if getElementDimension(player) ~= 97 then outputChatBox("No estás en el desarme.", player, 255, 0, 0) return end exports.items:give(player, 34, 20) exports.chat:me(player, "toma una caja con piezas.") outputChatBox("recibiste 20 piezas", player, 0, 255, 0) startTimer(player) end addCommandHandler("piezas", getPiezasContrabandistas) Haven't tested but try this ?
-
Yes, I didn't notice the setCameraTarget function in your code, it really works. But I would like the sight to rise up smoothly, and not abruptly. Thank you
-
This function rotates the camera to the right or left, so the function is not suitable. I need the camera to be pointing up for vertical recoil.
-
I want vertical recoil, not horizontal.
-
Hello. Thanks for your reply. When using setCameraMatrix I won't be able to rotate the camera. The only function to do this is setCameraTarget, now we need to get the correct camera direction to move it up a bit.
-
Does not work. The player's camera rotates approximately 180 degrees.
-
Hello. I have a question. How can you make vertical recoil in MTA? This is done in this video, while shooting, the scope goes up:
-
Is it client side or server side? And tell us your code
-
You can specify the transport speed in the setModelHandling function. Example: setModelHandling(415, "maxVelocity", 150) -- sets vehicle speed "cheetah" to 150
-
Use English language
-
Эта система работает только на скине CJ
-
Greetings. 1) No, you cannot create vehicles using only variables. I am sure that information from this table is taken in some other file and vehicles are created. (function: createVehicle) 2) I'm not very good at these things, but I'm good at my personal server
-
local endJob = {} 1 string write
-
I think you apply the animation immediately after creating the ped. Try setting the animation via setTimer ?
-
function damageController(loss) local heal = getElementHealth(source) - loss if heal <= 10 then setElementHealth(source,100) setPedArmor(source,100) end end addEventHandler("onPedDamage", root, damageController) Perhaps you need this ?
-
Set the time to -1 ?
-
I did not understand your question, write in detail in English ?
-
Very well! Keep up the good work, everything will work out!
-
guiSetProperty( button1, "Disabled", "True" )