• Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral


About Hornet

  • Rank
  • Birthday 21/08/1997


  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hornet

    Microphone on CEF

    I'm trying to use discord app inside the game, everything works fine, except the microphone appears unusable.
  2. Hornet

    Microphone on CEF

    Hi everyone, is there possible to use microphone on CEF? I took a look at the wiki, but i didn't find nothing about it.
  3. Hornet

    Why show in global chat the teamsay?

    local function ujteamsay(message, messageType) if messageType == 2 then cancelEvent() local team = getPlayerTeam(source) if(team) then for i,player in pairs(getPlayersInTeam(team)) do outputChatBox("(CSOPORT) "..getPlayerName(source)..": #FFffFF"..message, player, red, green, blue, true ) end end end end addEventHandler("onPlayerChat", root, ujteamsay)
  4. Hornet

    [Help] getTime

    setTimer(function(), local time = getRealTime() if(time.hour == "21" and time.minute == "0") then elseif(time.hour == "5" and time.minute == "0") then end end, 60000, 0)
  5. Hornet

    [HELP] HTML Login

    I'm not sure if mta browser enable cookies, try this to store on JS... http://www.w3schools.com/js/js_cookies.asp
  6. Hornet

    [Question] How to render something smoothly ?

    I think it is easier for your purpose: (You'll need to create an object alpha 0 and attach to your car) https://wiki.multitheftauto.com/wiki/MoveObject
  7. Hornet

    [Question] How to render something smoothly ?

    onClientRender interpolateBetween
  8. Hornet

    [Ajuda] com getPedOccupiedVehicle

    Somente em server o player é passado como parâmetro(no caso thePlayer). function showVehicleName () local theVehicle = getPedOccupiedVehicle (localPlayer) if theVehicle then outputChatBox ( "Name of the Vehicle: " .. getVehicleName ( theVehicle ), thePlayer ) else outputChatBox ( "You do not have a Vehicle!", thePlayer, 255, 0, 0, true ) end end addCommandHandler ( "getcarname", showVehicleName )
  9. Hornet

    cancel bind

    addEventHandler("onClientKey", getRootElement(), function(button, press) if(button == "space") then local keyState = getKeyState("w") if(keyState) then cancelEvent() end end end)
  10. Hornet

    cancel bind

    It is not possible to cancel bindKey function, only via event.
  11. Hornet

    cancel bind

    Something like this? toggleControl("sprint", false)
  12. Hornet

    cancel bind

    addEventHandler("onClientKey", root, function(key, press) if(key == "w") then cancelEvent() end end) https://wiki.multitheftauto.com/wiki/OnClientKey
  13. Hornet

    [HELP] Network in my server

    Take a look on Performancebrowser to check server usage first... it seems like high usage of bandwidth, memory or even overloaded cpu. https://wiki.multitheftauto.com/wiki/Re ... ncebrowser
  14. Hornet

    get index by value in sub-table

    I'm not sure how to do it correctly, but you need a recursion to loop through the sub tables. Something like this below: function table.getIndexByValue(t,value) for i,v in pairs(t) do -- or ipairs, if count zero if(v == value) then return i elseif(type(v) == "table") then return table.getIndexByValue(v,value) -- recursion, call the same function for internal tables end end end
  15. Hornet

    Any difference between isGuestAccount and getAccount?

    Yes, it has difference. When you are not logged in, automatically you get an guest account(when you quit the game, this account is deleted, consequently all data of this account will be lost). So, if you check using getPlayerAccount() it will return the account being guest or not, to be sure that the player logged in use isGuestAccount() after you got the account from the player using getPlayerAccount(). https://wiki.multitheftauto.com/wiki/IsGuestAccount https://wiki.multitheftauto.com/wiki/GetPlayerAccount