2kristof2
Members-
Posts
80 -
Joined
-
Last visited
Everything posted by 2kristof2
-
The problem is I want to use this function only for 1 map which must be client sided. I tried to copy attach_func.lua, bone_attach.lua and bone_attach_c.lua to my map folder and added these lines to meta: Unfortunately it doesn't work properly.
-
Thanks I tried to use getPedBonePosition yesterday but without any result. :c I also checked CrystalMV's script and it seems to be very interesting but also complicated for me. I copied functions from attach_func.lua and added few lines to my parachute script: local Me = getLocalPlayer() local x,y,z = getElementPosition( Me ) local rx,ry,rz = getElementRotation( Me ) parachute = createObject(371, x,y,z, rx, ry, rz) exports.bone_attach:attachElementToBone(parachute,Me, 3, 0, 0.25, 0.17,-90,2,0) It doesn't work for me but I'm going to try it once again. I would be so glad to see any advice what should I do or use
-
Hey, I have no idea how to attach a parachute to local player. I used simple attachElements but It looks horrible. Can somebody tell me how to get a better effect? (like in gta parachute). I couldn't find the solution in parachute resource. Video says all: https://www.youtube.com/watch?v=SLph2_Q ... e=youtu.be
-
ok tahnks I'll take a look
-
Where can I find it? I don't want to use server-sided script so I'm not sure if it is possible to fix anything..
-
Hello, I noticed a parachute bug while landing. Sometimes I need only 1 second to open the parachute and land safely, but sometimes the parachute is opening so slowly and people need to open it earlier to not die. Is it possible to fix that by creating a script?
-
thanks for the replies. I already fixed the problem. My friend used timer (0) for sound
-
So moving objects, peds, effects, texts etc aren't the reason of the lags but I just failed 1-2 scripts which are lagging?
-
Hi, I have a question about scripts. I made many scripts like: moving objects, peds (+animations), effects (fire and smoke), texts and more. What should I delete to decrease lags? Which functions cause lags on slow computers? (People have low fps everywhere not only near scripted parts)
-
Thanks! Finally it works I really appreciate your time spent on helping me. I know a bit more about server-sided scripts now.
-
Nothing happens and no errors
-
I tried both options... Warnings for your code:
-
I have no idea how to make it... Just made script which has none sense: objects = {} addCommandHandler("cre",function (cmd, oid) local selectedElement = exports.editor_main:getSelectedElement() if oid then local x,y,z = exports.edf:edfGetElementPosition(selectedElement) local rx, ry, rz = exports.edf:edfGetElementRotation(selectedElement) objects[selectedElement] = createObject(oid,x,y,z,rx,ry,rz) if isElement(objects[selectedElement]) then destroyElement(objects[selectedElement]) end end end ) when I type "/cre ID" I noticed the following warnings:
-
Could you test it please? Because nothing happens when I type it. (btw I changed command because "/create" already exists) (video is a fake just to show you what I want to do)
-
I know but it doesn't work Well I'm playing mta about 2 years so I know how to copy an object. This is what I want to do: https://www.youtube.com/watch?v=FSMRg4A ... e=youtu.be
-
It doesn't work for me.
-
Hi, I'm not a new scripter and know a bit lua but I've never made any server-sided script though. I'd like to know how to make a simple (I guess) script. For example when I type "/create" in chatbox the script checks which element is selected (in my editor in this case) and it creates an object with the same position and rotation what the selected element (object/vehicle). Thanks for any help regards, 2kristof2
-
Thanks Don I tried it long ago but I just noticed that the script should be server sided But I always have to use command setfps. It would be cool to make it for good.
-
Hey I always use map editor from mta menu and my question is how to change fps limit from 36 to 60? I know only how to do that on my local server (there is admin panel so It's very easy).
-
oh maybe you are right I'll try to use onClientPickupHit
-
"when I change vehicle, ghostmode is enabled again.." (Every time when i hit a pickup) Anyway if nobody has no idea I will use onClientRender.
-
Yea but i don't want to change the gamemode but do it by (client-side) script.
-
Is there another way to set ghostmode disabled (permanently) without using handler "onClientRender" or setTimer(function,50,0) ?
-
Hi I created a script to disable ghostmode in race: (Player can hit vehicles like police etc..) function GM_off () local v = getPedOccupiedVehicle(localPlayer) for index,vehicle in ipairs(getElementsByType("vehicle")) do setElementCollidableWith(vehicle, v, true) end end addEventHandler ( "onClientRender", getRootElement(), GM_off) I used onClientRender because every time when I change vehicle, ghostmode is enabled again..
