Jump to content


User Guide Contributor
  • Content Count

  • Joined

  • Last visited

  • Days Won


AfuSensi last won the day on July 18 2019

AfuSensi had the most liked content!

Community Reputation

13 Decent


About AfuSensi

  • Rank
    User Guide Contributor
  • Birthday August 11


  • Gang
    Mr. Green Gaming
  • Location
    The Netherlands
  • Occupation
    Internet Gangster
  • Interests
    MTA, Programming, Music Production

Recent Profile Visitors

577 profile views
  1. To draw the text, you need to put it in an onClientRender event, because you need to draw it at every frame. Then you need to add an "onClientRender" event handler to draw your text. You can then use a timer to remove the event handler, so that the text disappears after the timer executes. Example: -- Create a function that draws your text. function drawWarning() dxDrawText("Do not try to camp!", 0, 0, x, y, tocolor(255, 0, 0), 2, "pricedown", "center", "center") end addEventHandler("onClientVehicleCollision", getRootElement(), function(hitElement) if source ~= getPedOc
  2. AfuSensi


    Never send your passwords to anyone. If anyone asks you for a password, you can count on it being a scam.
  3. You need a server that can run Node.js The repository also includes a readme that explains how you run it on your server. It's pretty straight-forward so try to follow it. If you have any questions, feel free to ask.
  4. Did you put # aa0000 or #aa0000? It should not include a space.
  5. If you follow the call chain, you will see a lot more vehicle dependencies. That's just the first place it checks for a vehicle.
  6. If you just want a cooldown you dont really need a timer for this. You can use getTickCount to keep track of time. (which does not create unnecessary timers) For example: local cooldownTime = 3 * 60 * 1000 -- Cooldown time in ms local lastHit -- Last time we hit the marker while out of cooldown function markerHitHandler() local currentTick = getTickCount() -- Check if the time between the current and last tick is smaller than our cooldown if lastHit and currentTick - lastHit <= cooldownTime then -- We are still on a cooldown so we stop the function execution outputCh
  7. I might be wrong but doesnt adding the color code render the color in the scoreboard? If so, just replace Admin with #aa0000Admin Just a tip though, this does not need to be on a timer. You can use event such as onPlayerLogin , onPlayerLogout and onPlayerJoin to set a player's Rank. This will prevent your server from running the same checks every 500 ms while also keeping it updated.
  8. Here's where it's defined: https://github.com/multitheftauto/mtasa-resources/blob/master/[gamemodes]/[race]/race/race_client.lua#L26 You can change the font by replacing `bankgothic` with another font name.
  9. I'm not sure how well this would work because the race resource is specifically built assuming players are in vehicles. This is where race handles checkpoint hits: https://github.com/multitheftauto/mtasa-resources/blob/master/[gamemodes]/[race]/race/race_client.lua#L700-L746 As you can see, it assumes a vehicle, and will return at if elem ~= g_Vehicle or isVehicleBlown(g_Vehicle) or getElementHealth(g_Me) == 0 or Spectate.active then return end
  10. Can you rephrase your question, i think the translator messed up.
  11. Truth - MTA Wiki Discord Bot Since i was in need for a wiki discord bot on a discord server, I decided to make one. I have also created a dashboard to manage the bot's setting on your guild. This bot is open source so feel free to submit PR's or issues. There is a new wiki coming soon(?), so i am planning to convert this bot to use the new version once it releases if there's no official wiki bot available at that time. I hope this bot can be of use to you. Features Wiki article fetching like on MTA's official discord Wiki article searching Function
  12. AfuSensi

    Help script

    Try this: function rewardTimer(player) local player = source or player setTimer ( rewardOnRun, 10000, 1,player ) givePlayerMoney ( player, 3000 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), rewardTimer ) function rewardOnRun(player) givePlayerMoney ( player, 3000 ) setTimer ( rewardTimer, 10000, 1,player ) end You did not give any argument to the rewardOnRun() function. This would make it work, although i am not sure what you are trying to do with the code.
  13. https://wiki.multitheftauto.com/wiki/Se ... oubleSided
  14. (not tested) I used timers this time, but same can be applied with getTickCount() --------------------------- -- Repair vehicle --------------------------- local repairDelayTime = 30000 -- delay time in ms local repairTimer = false function repairVehicle() if isTimer(repairTimer) then local timeleft = math.ceil( getTimerDetails(repairTimer)/1000 ) -- Get seconds left from timer if timeleft then local secondString = " second" if timeleft > 1 then secondString = " seconds" end outputChatBox("Repair failed! Repa
  • Create New...