mazarati21

Members
  • Content Count

    21
  • Joined

  • Last visited

Community Reputation

4 Neutral

1 Follower

About mazarati21

  • Rank
    Civilian
  • Birthday 26/04/1999

Details

  • Gang
    SAAF
  • Location
    Portugal
  • Occupation
    Programming in LUA, HTML, CSS, PHP,

Recent Profile Visitors

918 profile views
  1. mazarati21

    [HELP] getTickCount

    Use this: https://wiki.multitheftauto.com/wiki/SetTimer
  2. mazarati21

    Armour Help

    You're welcome
  3. mazarati21

    Armour Help

    You can use this. https://wiki.multitheftauto.com/wiki/DxDrawRectangle then dxDrawText("Armor: "..armor.."%" etc..
  4. mazarati21

    Armour Help

    Something like this to get the player health. local armor = math.ceil(getPedArmor(localPlayer))
  5. mazarati21

    HeadShot Bugged

    Have you tried this? https://wiki.multitheftauto.com/wiki/SetWeaponProperty
  6. mazarati21

    [LOOK] Poker script

    Right here: https://community.multitheftauto.com/index.php?p=resources&s=details&id=693
  7. mazarati21

    how to fix this script

    You a space between exports and Messages.
  8. mazarati21

    Save checkbox status

    Hello i'd like to know how do i save the checkbox state when the player logouts out / quit the server.
  9. Create a folder. Then create a meta.xml <meta> <info author="Name" description="Engineoff" version="1.0" type="script" /> <script src="server.lua" type="server" /> </meta> and create another file server.lua function engineoff (thePlayer, seat, jacked) if seat ==0 and not jacked then setVehicleEngineState(source, false) setVehicleLocked(source, false) end end addEventHandler("onVehicleExit", root, engineoff)
  10. Yes i put it on server side and it worked
  11. mazarati21

    Ignore all player's messages

    local blocked_players = {} addEventHandler("onClientChatMessage",root,function() if (blocked_players[source]) then cancelEvent() outputChatBox(getPlayerName(source).." wrote something in chat, but you blocked him.") end end) function block(cmd,plyname) local target = getPlayerFromName(plyname) if (plyname and target) then if (not blocked_players[target]) then blocked_players[target] = true; outputChatBox("player"..plyname.." blocked!") else blocked_players[target] = nil; outputChatBox("player"..plyname.." unblocked!") end else outputChatBox("player not found") end end addCommandHandler("block", block)
  12. This code works fine here. function engineoff (thePlayer, seat, jacked) if seat ==0 and not jacked then setVehicleEngineState(source, false) setVehicleLocked(source, false) end end addEventHandler("onVehicleExit", root, engineoff) Server side.
  13. mazarati21

    How to make a marker which can remove your wanted level

    Try this: function MarkerHit (player,hitElement) local level = getPlayerWantedLevel (player) -- Get player stars if (level < 5) then return outputChatBox( "You must have 5 starts to reset them", player ) end if getPlayerMoney(player) < 500 then outputChatBox("You dont have enought money", player, 255, 0, 0) return end outputChatBox("You lost your stars", player, 255,255,0) setPlayerWantedLevel (player, 0 ) takePlayerMoney(player, 500) end addEventHandler( "onMarkerHit", Marker, MarkerHit )
  14. mazarati21

    [HELP] Hud glitching error

    Better to use this: --This will disable original hud function hideall(player) setPlayerHudComponentVisible ( "ammo", false ) setPlayerHudComponentVisible ( "area_name", false ) setPlayerHudComponentVisible ( "armour", false ) setPlayerHudComponentVisible ( "breath", false ) setPlayerHudComponentVisible ( "clock", false ) setPlayerHudComponentVisible ( "health", false ) setPlayerHudComponentVisible ( "money", false ) setPlayerHudComponentVisible ( "vehicle_name", false ) setPlayerHudComponentVisible ( "weapon", false ) end addEventHandler ( "onClientResourceStart", getRootElement(), hideall )
  15. mazarati21

    Destroy Explosed Cars

    Try this: -- 1 seg = 1000 local disappear = 5000 function vehicledisappear() setTimer(destroyElement, disappear, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), vehicledisappear)