Jump to content

orel56000

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by orel56000

  1. orel56000

    Lagshot

    what are you talking about? what headshot system?
  2. orel56000

    Lagshot

    no, its still happened even if I disable all the scripts
  3. orel56000

    Lagshot

    I have lagshot on my server, how to disable that?
  4. it is not giving when i give a weapon with 0 bullets...
  5. When a weapon has 0 bullets its disappeard, how to make the weapon stay in my hands even if I got no ammo?
  6. local AngX, AngZ, specdis, ticks, ticks2, speed, specon = 0, 0, 0, 0, 0, 0.8, nil function MoveMouse(rx, ry, x, y) if not isCursorShowing() then local sx, sy = guiGetScreenSize() ticks = getTickCount() ticks2 = 1 AngX = (AngX + (x - (sx/2))/10) % 360 AngZ = (AngZ + (y - (sy/2))/10) % 360 if AngZ > 180 then if AngZ < 315 then AngZ = 315 end else if AngZ > 45 then AngZ = 45 end end end end function RenderVeiw() if not specon then removeEventHandler("onClientRender", getRootElement(), RenderVeiw) removeEventHandler("onClientCursorMove", getRootElement(), MoveMouse) return 1 end local ox, oy, oz local x, y, z = getElementPosition(specon) if ticks+10000 < getTickCount() then local rx, ry, rz = getElementRotation(specon) local dis = AngX-(360-rz) local dis1 = math.abs(dis) if dis1 > 30 then if speed < 4 then speed = speed + 0.8 end end if dis1 < 30 then if speed > 0.8 then speed = speed - 0.8 end end if dis1 > speed then dis = dis/(dis1/(speed)) end if dis1 < speed and ticks2 == 1 then ticks2 = 0 triggerEvent("mouseAnimationEndCamera", getRootElement()) end AngX = AngX - dis end ox = x - math.sin(math.rad(AngX)) * specdis oy = y - math.cos(math.rad(AngX)) * specdis oz = z + math.tan(math.rad(AngZ)) * specdis setCameraMatrix(ox, oy, oz, x, y, z) end function mouseAnimationEndCamera() -- animation end end function PlayerSpecOnElement(spec, distance) if spec == nil or distance == nil or spec == "None" then specon = nil specdis = 0 return 1 end if specon then removeEventHandler("onClientRender", getRootElement(), RenderVeiw) removeEventHandler("onClientCursorMove", getRootElement(), MoveMouse) end specon = spec specdis = distance addEventHandler("onClientRender", getRootElement(), RenderVeiw) addEventHandler("onClientCursorMove", getRootElement(), MoveMouse) end addEvent("setPlayerSpecOnElement", true) addEventHandler("setPlayerSpecOnElement", getRootElement(), PlayerSpecOnElement) triggerClientEvent(player, "setPlayerSpecOnElement", getRootElement(), element, lookDistance) PlayerSpecOnElement(element, lookDistance) Have fun ~NOT TESTED~
  7. Yea I know about that solution but I wanted to know that too.. and I think it is easier to just write cache="false" insted using luac.. And it is just scripts.. I dont care if it will redownload it everytime cause it will not be up to 3 seconds to download all the scripts.. don't u think?
  8. I saw a server that shows me custom hud on my screen such as pictures and texts, I opened my files and I saw that only the pictures of this server have downloaded without even a one clientside script, how they have done that? thanks for helpers
  9. No, to disable it just write "None" instend of the arguments ex. on server side: triggerClientEvent(player, "setPlayerSpecOnElement", getRootElement(), "None")
  10. oh sorry, that a fix: that the calculations: local AngX, AngZ, specdis, specon = 0, 0, 0, nil function MoveMouse(rx, ry, x, y) if not isCursorShowing() then local sx, sy = guiGetScreenSize() AngX = (AngX + (x - (sx/2))/10) % 360 AngZ = (AngZ + (y - (sy/2))/10) % 360 if AngZ > 180 then if AngZ < 315 then AngZ = 315 end else if AngZ > 45 then AngZ = 45 end end end end function RenderVeiw() local ox, oy, oz local x, y, z = getElementPosition(specon) ox = x - math.sin(math.rad(AngX)) * specdis oy = y - math.cos(math.rad(AngX)) * specdis oz = z + math.tan(math.rad(AngZ)) * specdis setCameraMatrix(ox, oy, oz, x, y, z) end function PlayerSpecOnElement(spec, distance) if spec == nil or distance == nil or spec == "None" then specon = nil specdis = 0 return 1 end if specon then removeEventHandler("onClientRender", getRootElement(), RenderVeiw) removeEventHandler("onClientCursorMove", getRootElement(), MoveMouse) end specon = spec specdis = distance addEventHandler("onClientRender", getRootElement(), RenderVeiw) addEventHandler("onClientCursorMove", getRootElement(), MoveMouse) end addEvent("setPlayerSpecOnElement", true) addEventHandler("setPlayerSpecOnElement", getRootElement(), PlayerSpecOnElement) put that on client side If you wanna use it on clientside: PlayerSpecOnElement(element, lookDistance) if you wanna use it on serverside: triggerClientEvent(player, "setPlayerSpecOnElement", getRootElement(), element, lookDistance) sorry for posting again i coulden't edit my reply
  11. I found a way for all who looking for that too that the calculations: local specdis, specon = 0, nil function MoveMouse(rx, ry, x, y) if not isCursorShowing() then local sx, sy = guiGetScreenSize() AngX = (AngX + (x - (sx/2))/10) % 360 AngZ = (AngZ + (y - (sy/2))/10) % 360 if AngZ > 180 then if AngZ < 315 then AngZ = 315 end else if AngZ > 45 then AngZ = 45 end end end end function RenderVeiw() local ox, oy, oz local x, y, z = getElementPosition(specon) ox = x - math.sin(math.rad(AngX)) * specdis oy = y - math.cos(math.rad(AngX)) * specdis oz = z + math.tan(math.rad(AngZ)) * specdis setCameraMatrix(ox, oy, oz, x, y, z) end function PlayerSpecOnElement(spec, distance) if spec == nil or distance == nil or spec == "None" then specon = nil specdis = 0 return 1 end if specon then removeEventHandler("onClientRender", getRootElement(), RenderVeiw) removeEventHandler("onClientCursorMove", getRootElement(), MoveMouse) end specon = spec specdis = distance addEventHandler("onClientRender", getRootElement(), RenderVeiw) addEventHandler("onClientCursorMove", getRootElement(), MoveMouse) end addEvent("setPlayerSpecOnElement", true) addEventHandler("setPlayerSpecOnElement", getRootElement(), PlayerSpecOnElement)
  12. Thank you for reply. I need that free camera movement too.. so it does not helped me too much but thanks anyway
  13. Hi, someone knows how to spectate an object or a ped or a vehicle? SetCameraTarget can spectate only players and I saw server the made me spectate on a vehicle or a ped inside idk... if someone knows how to do it please help... any help will be welcome!
  14. Someone knows how they've done that? when you are in arena and you press f1 so it doing an effect that resize the game and moving it to the right place... thanks
  15. I understood him, he diden't understood me. I play on screen ratio 4:3, with resolution 1920X1080, but if player connecting with resolution 1920X1080 with screen ratio of 16:9 or 16:10 the text stay in the same postion but the health bar and money and weapon hud changes position, so the text not under the hud anymore....
  16. You are nor understanding me, the text stay in the same position to any resolution, but the hud of the weapon and the health bar and the money goes to an other position...
  17. I have an other problem, I placed the other money under the gta's green money, but in other resolutions it is in an other place (not because I diden't used GuiGetScreenSize(), because the health bar and the money is in other place in every resolution, so the text stay in the same position but not under the money) how do I fix that?
  18. like that {0.5, 0.3}? for example.
  19. I'm tryna create bank text with dxDrawText and I can't resize it like the gta's money, how to do it? I can only with scale and that increase the X size and the Y size. What should I do to increase only the X size or the Y size of the text? Thanks for helpers and sorry for bad english.
  20. XML is the easy way, just try it ok, btw, you know how to find how many charters there is on string?
×
×
  • Create New...