Jump to content

FuriouZ

Members
  • Posts

    459
  • Joined

  • Last visited

Everything posted by FuriouZ

  1. Oh, THANK YOU ! A little demostration - Front brake calipers 100% - Steering wheels 100% - Moving spoilers 0% - Rear brake calipers 0% - Other features 0%
  2. Hello! I am working on a vehicle system, inspired from IVF. So, not all the vehicle mods using the same style to do their stuff, probably modders know what I'm talking about.. Anyways, I don't really know how to explain that... How I can check, if the vehicle has the component what's needed? And then how i should check, what sort of "definition" it have? I don't really know how to do it, but it should look something like that: local theVeh = getPedOccupiedVehicle ( localPlayer ) if ( theVeh ) then for k in pairs ( getVehicleComponents ( theVeh ) ) do if k == movsteer then local strwh_type = "movsteer" elseif k == steeringok then local strwh_type = "steeringok" elseif k == steering_ok then local strwh_type = "steering_ok" end end end ---or this? local theVeh = getPedOccupiedVehicle ( localPlayer ) if ( theVeh ) then -- for k in pairs ( getVehicleComponents ( theVeh ) ) do if getVehicleComponents ( theVeh ) == "movsteer" then local strwh_type = movsteer elseif getVehicleComponents ( theVeh ) == "steeringok" then local strwh_type = steeringok elseif getVehicleComponents ( theVeh ) == "steering_ok" then local strwh_type = steering_ok end --end end --another thing local mvstr_rx, mvstr_ry, mvstr_rz = getVehicleComponentRotation(theVeh, strwh_type) Yes, I am really bad at explaining and my english isn't good..
  3. I definitley support it! Server list is TOTAL MESS imo..
  4. Oh gosh, finally !! Keep it up MTA Team !
  5. Cool idea! Something really special at 101 day ?
  6. It doesn't give the warning anymore. Thanks!
  7. Hey! I have a problem, debug gives me a warning ..."Bad argument @ 'getVehicleType' [Expected number at argument 1, got boolean] local localVehicle = getPedOccupiedVehicle (getLocalPlayer()) if ( isPedInVehicle(localPlayer) ) and ( getVehicleType(localVehicle) == "Helicopter" ) then -- else -- end Everything works, but debug just gives me this error.
  8. As far as I know, effects are only possible to change via shaders.
  9. I wanted to do it also, but the answer was It's not possible.. viewtopic.php?f=91&t=74753 Good luck and I hope you'll show show to them, that it's possible Actually I had the same thing in my mind, but I couldn't find any way to get all lamp post cordinates and attach corona to every post, If you know what I mean.
  10. Any idea when new version will come ?
  11. https://wiki.multitheftauto.com/wiki/Main_Page Videos:
  12. How I can cancel server-sided ped damage ? As I can see this is only client-side function cancelPedDamage ( attacker ) cancelEvent() -- cancel any damage done to peds end addEventHandler ( "onClientPedDamage", getRootElement(), cancelPedDamage ) Maybe I can use: IsElementAttached ?
  13. FuriouZ

    Table

    Thank you so much !
  14. FuriouZ

    Table

    I figured out so far, that I have to use setTimer inside for i=1,#dancers do local c_Dancers = createPed (dancers[i][1],dancers[i][2],dancers[i][3],dancers[i][4],dancers[i][5]) --Here end But how? I don't really know.. It should be something like this: for i=1,#dancers do local c_Dancers = createPed (dancers[i][1],dancers[i][2],dancers[i][3],dancers[i][4],dancers[i][5]) setTimer(setPedAnimation(c_Dancers, "DANCING", "dnce_M_a"), 5000,1) end But there's something wrong that I can't figure out This way it's working, but I can't use table local c_Dancer = createPed (214, 1450.94434, -1674.35669, 16.21225, 280) function setanim() setPedAnimation(c_Dancer, "DANCING", "dnce_M_a") end setTimer(setanim, 5000,1)
  15. FuriouZ

    Table

    Nothing, also no errors in debug Tried even animation given in wiki
  16. FuriouZ

    Table

    Thanks manawydan ! EDIT: Why animation doesn't start ? No errors in debug Code is server-sided for i=1,#dancers do local c_Dancers = createPed (dancers[i][1],dancers[i][2],dancers[i][3],dancers[i][4],dancers[i][5]) setPedAnimation(c_Dancers, "DANCE", "dnce_M_a") end
  17. FuriouZ

    Table

    I have done tables only randomly Like this: local validHelmets = { { "moto", "moto" }, { "helmet", "helmet" } } local texture, model = unpack ( validHelmets [ math.random ( #validHelmets ) ] ) But how can I do same thing without math.random, so the script will create all the peds, not only one random one..
  18. FuriouZ

    Table

    Hey How can I create all peds from a table ? I can create randomly only one, but how I can create all peds with one function? Something like this: local dancers = { { 214, 1450.94434, -1674.35669, 16.21225, 280 }, { 1451.04382, -1672.26038, 16.21225, 280 } }; local skin, posx, posy, posz, rot = unpack ( dancers ( #dancers ) ) createPed (skin, posx, posy, posz, rot)
  19. FuriouZ

    Custom HUD

    Yeah, but there isn't a event which checks if player is spawned or not ?
  20. FuriouZ

    scratch ?

    As long as I know, scratch means that YOU did something on your own.. Like from zero or something like that. Easy example would be Valhalla Roleplay gamemode.. A lot of people are saying that they are created "New Unique gamemode"... but actually their gamemodes are based on stolen/leaked vallhalla gamemode.. < This is how I understand this thing, I may be wrong
  21. FuriouZ

    Custom HUD

    Hey! What would be the easyest way to show & hide my custom hud for the players ? When player joins with the server, then HUD will be hitten, when he logs in, then hud will be visible? I've already tried with elementData.. Anyways here's one of the ways I tried it, but yeah.. This code is kinda messy, I know..I haven't scripting quite long time, so I don't remember how it goes local showHUD = true function drawHUD() --dxDrawings... end addEvent("showTheHUD", true) addEventHandler("showTheHUD", root, function() showHUD = true addEventHandler("onClientRender", root, drawHUD) end); addEvent("hideTheHUD", true) addEventHandler("hideTheHUD", root, function() showHUD = false removeEventHandler("onClientRender", root, drawHUD) end) addEventHandler("onClientPlayerSpawn", root, function() if ( showHUD == true ) then cancelEvent() else triggerEvent("showTheHUD", localPlayer) end end) addEventHandler("onClientPlayerWasted", root, function() if ( showHUD == true ) then triggerEvent("hideTheHUD", localPlayer) end end) addEventHandler("onClientPlayerJoin", getRootElement(), function() if ( showHUD == true ) then triggerEvent("hideTheHUD", localPlayer) end end) addEventHandler("onClientResourceStart", resourceRoot, function() triggerEvent("showTheHUD", localPlayer) setPlayerHudComponentVisible ( "all", false ) setPlayerHudComponentVisible ( "crosshair", true ) setPlayerHudComponentVisible ( "radar", true ) end); If the player joins the server, then the HUD is still visible..
  22. FuriouZ

    Possible ?

    Hello! Is it possible to use these water reflections as shaders in mta ? It would be nice, if someone will do it, i am not good at shaders http://forum.ls-rp.com/viewtopic.php?f=222&t=418216
×
×
  • Create New...