Jump to content

Hugos

Members
  • Posts

    172
  • Joined

  • Last visited

Everything posted by Hugos

  1. Hugos

    no limit

    It would be good if you could add your skins/machines/objects without replacement. For example, by adding new objects, you simply assign them a passed id.
  2. All hi, such here problem arose: when I use "triggerEvent" in one resource, it starts function necessary to me in a resource necessary to me, but at the same time and in other resource where there is a function with the same name. Which 2 argument must be specified to run on only one resource?
  3. Tell me, please, kind people, how am I supposed to get the radar right? We need to put a map in this red circle. How can do that?
  4. Hugos

    speedometer

    I have a function by means of which I learn car speed: function GetSpeed() if isPedInVehicle(getLocalPlayer()) then vehicle = getPedOccupiedVehicle(getLocalPlayer()) px, py, pz = getElementVelocity(vehicle) speed = ((px^2 + py^2 + pz^2)^(0.5)) * 111.847 mph = math.floor(speed) else guiSetVisible(disc, false) guiSetVisible(needle, false) end end I have a speedometer and an arrow (to watch pictures). How to make that the arrow was smoothly scrolled and specified what car speed now?
  5. + edit 9 line outputChatBox("«" ..string.gsub(message, "*", " - ").. "»#C2A2DA, - told " ..getPlayerName(player).. ", ", v, 200, 200, 200, true)
  6. I want to make here so: /todo Text * RP player's.
  7. Yes is that I wanted. And whether it is possible to make still color to "*" and after "*" a miscellaneous?
  8. I have a "/do" team, want to make still "/todo". It works approximately so: function doChat(player, cmd, ...) if ... then local message = table.concat({...}, "") for i, v in pairs(getElementsByType("player")) do local x, y, z = getElementPosition(player) local xt, yt, zt = getElementPosition(v) if getDistanceBetweenPoints3D(x, y, z, xt, yt, zt) <= 10 then outputChatBox("" ..message.. " (" ..getPlayerName(player).. ")", v, 194, 162, 218, true) end end end end addEventHandler("CommmandHandler", getRootElement(), doChat) addCommandHandler("do", doChat) The player writes the message: todo text1*text2 As a result to the player such message is displayed: nickname text1 - told text2 How to me to replace "*" with the text necessary to me?
  9. Hugos

    Radar

    help, as make radar?
  10. Hugos

    Area name

    Whether it is possible to remove somehow inscriptions, standard which specify names of areas?
  11. All hi. Wanted to create such radar: the round radar with a white inking border and the player's marker, and also with grayish color of the card. How it is possible to make it?
  12. Hugos

    help (animate)

    InterpolateBetween. As it is correct to make function with animation as it is correct to animate this rectangle. Would like to see at least an example.
  13. Hugos

    help (animate)

    I can not figure out this function. Help, please.
  14. Hugos

    help (animate)

    my functions: dxDrawRectangle(x/3, y-100, 10, 50, tocolor(255, 50, 65), true) dxDrawRectangle(0, y-100, x/3, 50, tocolor(0, 0, 0, 230), true) I need to animate these DX that they "moved forward" on the left side for 30 seconds and "moved" back. How to make it?
  15. Hugos

    Unlimit

    Hi everyone! Found here such resource: Unlimited Vehicle. As you have understood by the name it removes limit on cars, that is now it is possible to add the vehicle, without replacing old. Whether it is possible to make, something similar for usual 3D models or skins?
  16. Hugos

    Chat Radius

    Hello. Tell me how to make a chat only in a certain radius? For example, 10 meters from the player who writes.
  17. Hugos

    KillTimer

    If you add this code after 5 lines, then there is no black screen, but the player does not kick.
  18. Hugos

    KillTimer

    black screen.
  19. Hugos

    KillTimer

    Hello. I have a question: there is a function with a timer (when a player connects to the server)... --Client local Timer = setTimer(function() if isTransferBoxActive() then else triggerServerEvent("PlayerKick", getLocalPlayer()) end end, 300000, 0) --Server addEvent("PlayerKick", true) function PlayerKick() kickPlayer(source, "Server", "AFK!") end addEventHandler("PlayerKick", root, PlayerKick) How do i kill this timer when a player spawn
  20. Hugos

    MySQL

    I have a table "player." It has the fields "username" and coordinates "x", "y", "z". How do I spam the player on the saved coordinates. ???
×
×
  • Create New...