mazarati21

Members
  • Content Count

    13
  • Joined

  • Last visited

Community Reputation

3 Neutral

About mazarati21

  • Rank
    Square
  • Birthday 26/04/1999

Details

  • Gang
    Hell's Soldiers
  • Location
    Portugal
  • Occupation
    Programming in LUA, HTML, CSS, PHP,

Recent Profile Visitors

579 profile views
  1. 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)
  2. Yes i put it on server side and it worked
  3. 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)
  4. 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.
  5. 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 )
  6. 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 )
  7. mazarati21

    Destroy Explosed Cars

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

    How can i disable the hud?

    Create a folder with two files client.lua and meta.xml
  9. mazarati21

    Vehicle problem in my server

    You're welcome.
  10. mazarati21

    How can i disable the hud?

    --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 )
  11. mazarati21

    Vehicle problem in my server

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

    [HELP] with gang system

    Show your client side code.
  13. mazarati21

    [HELP] with gang system

    In the line 202 change to this: triggerServerEvent( "GUI:createTeam", localPlayer, teamN, r, g, b, teamT, teamS)