• Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

1 Follower


  • Rank
  • Birthday 07/07/2002


  • Location
  • Occupation

Recent Profile Visitors

653 profile views
  1. welcome :salute:

    1. Infinity-War


      sorry for return message :lol:

  2. • Completey written from scratch (or if you are willing from refurbished functions of my own scripts for faster work) • Quick work • Communication between seller and buyer • Relatively cheap • MySQL and phpmyadmin knowledge • Can make almost anything DM me on Discord (DREFT#7428) if you are interested. I can send video proof of my previous projects too.
  3. It is bugged. setPedLookAt Issues Issue ID Description #4325 setPedLookAt does not work for remote players
  4. Welcome ❤️

  5. function MakePlayerHeadshot( attacker, weapon, bodypart, loss ) if getElementType ( attacker ) == "ped" then if bodypart == 9 then if getPedArmor(source) > 0 then triggerEvent( "onPlayerHeadshotArmor", source) else triggerEvent( "onPlayerHeadshot", source, attacker, weapon, loss ) setPedHeadless ( source, true ) killPed( source, attacker, weapon, bodypart ) setTimer( BackUp, 900, 1, source ) end end end end function onPlayerHeadshotArmor() setPedArmor(source, 0) end addEvent("onPlayerHeadshotArmor", true) addEventHandler("onPlayerHeadshotArmor", root, onPlayerHeadshotArmor) Try this (Not tested)

    Fuel System

    --Server fuelConsumption = 0.004 fuelTable = {} function vehMove() for i,v in ipairs(getElementsByType("vehicle")) do x,y,z = getElementPosition(v) if fuelTable[v] then distance = getDistanceBetweenPoints3D(x,y,z,fuelTable[v][2],fuelTable[v][3],fuelTable[v][4]) enginePlus = 0 if getVehicleEngineState(v) then enginePlus = 0.08 end newFuel = fuelTable[v][1] - (fuelConsumption*(distance+enginePlus)) fuelTable[v] = {newFuel,x,y,z} setElementData(v, "fuel", fuelTable[v][1]) else if getElementData(v, "fuel") then fuelTable[v] = {getElementData(v, "fuel"), x, y, z} else fuelTable[v] = {100, x, y, z} end end end end setTimer(vehMove, 1000, 0) --Client sx,sy = guiGetScreenSize() function testShowFuel() if isPedInVehicle(localPlayer) then dxDrawRectangle(sx-210,sy-30,200,20,tocolor(0,0,0,120)) if getElementData(getPedOccupiedVehicle(localPlayer), "fuel") then fuel = getElementData(getPedOccupiedVehicle(localPlayer), "fuel") else fuel = 100 end dxDrawRectangle(sx-210,sy-30,fuel/100*200,20,tocolor(127,198,118,255)) end end addEventHandler("onClientRender", root, testShowFuel)
  7. Hello! I have a problem. I wrote a custom damage system with the event onClientPlayerDamage. But whenever the player is doing a driveby. The event doesn’t seem to get called, even tho the player is taking damage. Is there a fix to it? Thanks, in advance.

    Fuel System

    PM me your discord name and I’ll help you in about 3 hrs.
  9. It happens with the chainsaw, and with simple punching too. Should I just change the fighting style and it should be good to go?
  10. My friend bought a new laptop. It has an integrated vga eith the processor, and a dedicated vga, but MTA uses the integrated vga and we don’t know how to change it.
  11. Thank you IIYAMA! Your reply was helpful! ShayF Yeah, it's good, but when I want to type like /mute DREFTHUN 34 that script won't seperate the arguments. Anyway, thanks! I'm all good now.
  12. I made a custom chat, and I made it to recognize commands by using if string.sub(guiGetText(chatGUI),1,1) == "/" then It's all good, but then I can't get the arguments server side. Like when I type /mute Player12 30, I don't know how to seperate them, in 2 arguments. I just need a little help to get started with.