Jump to content

FallenGod

Members
  • Posts

    29
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by FallenGod

  1. Hey Bro , I Hope I Can Help You You Can Use https://wiki.multitheftauto.com/wiki/OnClientObjectDamage Event To Canceling Damage (GodMode The Gate) I Write Part Of Example Code : local gate = createObject(19912,x,y,z) -- 19912 is Example Gate ID You Can Replace Your Gate ID , And x,y,z is The Pos Of Gate addEventHandler("onClientObjectDamage",gate,function() -- The Event To Know When Object Get Damage From Any Element cancelEvent() -- Canceling Event For Canceling Damage (GodMode Gate) end) You Can Use This And Enjoy
  2. Hey Bro Whats Up I Hope on This Script You Work Whit UseFull Any Functions , i Don't Know , i Write New Code For You And You Can Use And Enjoy -- Script By ErroR (@FullOffeD) -- Create Table To Insert Ped Pos And Rot pedPosition = {-2413.10327, -599.83673, 132.56250,60} -- {x,y,z,rotz} defPed = createPed(1, pedPosition[1], pedPosition[2], pedPosition[3], pedPosition[4]) -- Createing Ped addEventHandler("onClientKey",getRootElement(),function(button, press) -- Add Event To When Click if button == "mouse1" then local rotx,roty,rotz = getElementRotation(defPed) setElementRotation(defPed,rotx,roty,rotz - 10) -- Set New Rotation elseif button == "mouse2" then local rotx,roty,rotz = getElementRotation(defPed) setElementRotation(defPed,rotx,roty,rotz + 10) -- Set New Rotation end -- Close If end) I Test It Thats Work Successfully
  3. FallenGod

    Ped Saving

    Hi , I Hope I Can Help You Try This Code ( Server-Side) : local TimeToSpawnAgian = 12 -- Hour (Example : 12 Hour) pedir = createPed(0,-2413.10327, -599.83673, 132.56250) -- Createing Ped addEventHandler("onPedWasted",getRootElement(),function() if source == pedir then setTimer(function() destroyElement(pedir) -- Destroy To Optimizing pedir = createPed(0,-2413.10327, -599.83673, 132.56250) -- Create Again end,TimeToSpawnAgian * 3600000,1) -- Set Time To Spawn After Ped Dead end end) I Tested This Code And Thats Work Successfully
  4. Hi , You Can Use This Code After Teleporting setCameraTarget(getLocalPlayer(),getLocalPlayer()) fadeCamera(true) i dont Know , i Hope Thats Code Can Help You ! (Sry For My Bad Speaking English :D)
×
×
  • Create New...