Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. outputChatBox ( "Your Weapon Has Been Taken", 255, 25, 0, true, thePlayer ) correct outputChatBox ( "Your Weapon Has Been Taken", thePlayer, 255, 25, 0, true )
  2. .. Edit: lol you edit your post yeah like this
  3. https://wiki.multitheftauto.com/wiki/CreateMarker https://wiki.multitheftauto.com/wiki/OnMarkerLeave https://wiki.multitheftauto.com/wiki/TakeAllWeapons Example local myMarker = createMarker( -2596.6259765625, 579.3583984375, 15.626741409302, "cylinder", 2.0, 255, 0, 0, 150 ) function markerLeave( leaveElement, matchingDimension ) if getElementType( leaveElement ) == "player" then takeAllWeapons ( leaveElement ) end end addEventHandler( "onMarkerLeave", myMarker, markerLeave ) or you can use Col Sphere too
  4. TAPL

    Criminal Gui

    -- Client Side -- local PoliceMarker = createMarker ( 1556.33, -1608.37, 13, 'cylinder', 2.0, 0, 0, 225, 132 ) local CriminalMarker = createMarker ( 1229, -1423.6999511719, 13,'cylinder', 2.0, 225, 0, 0, 137 ) PoliceGui = guiCreateWindow(227,106,342,376,"MLAW Police job",false) Have_Job1 = guiCreateButton(39,313,111,45,"Have job!",false,PoliceGui) Cancel1 = guiCreateButton(200,312,111,45,"Cancel",false,PoliceGui) Doel1 = guiCreateMemo(63,44,234,242,"Police Job:\nAs police you will have a hourly payment. Further objectves comming soon!",false,PoliceGui) guiMemoSetReadOnly( Doel1,true ) guiSetVisible(PoliceGui, false) CrimGui = guiCreateWindow(227,106,342,376,"MLAW Criminal job",false) Have_Job2 = guiCreateButton(39,313,111,45,"Have job!",false,CrimGui) Cancel2 = guiCreateButton(200,312,111,45,"Cancel",false,CrimGui) Doel2 = guiCreateMemo(63,44,234,242,"Criminal:\nAs Criminal you need to rob houses. You will get 0-1K from this.",false,CrimGui) guiMemoSetReadOnly( Doel2,true ) guiSetVisible(CrimGui, false) addEventHandler("onClientMarkerHit", PoliceMarker, function(hitElement) if hitElement == localPlayer then if (guiGetVisible(PoliceGui) == false) then guiSetVisible(PoliceGui, true) showCursor(true) guiSetInputEnabled(true) else outputChatBox ("The police doesn't want you. Please re-enter the marker.") end end end ) addEventHandler("onClientMarkerHit", CriminalMarker, function(hitElement) if hitElement == localPlayer then if (guiGetVisible(CrimGui) == false) then guiSetVisible(CrimGui, true) showCursor(true) guiSetInputEnabled(true) else outputChatBox ("You aren't ready yet. Re-enter the marker.") end end end ) function OnClick(button,state) if (source == Have_Job1) then triggerServerEvent("PoliceTeam",localPlayer) guiSetInputEnabled(false) guiSetVisible(PoliceGui, false) showCursor(false) elseif (source == Have_Job2) then triggerServerEvent("CrimTeam",localPlayer) guiSetInputEnabled(false) guiSetVisible(CrimGui, false) showCursor(false) elseif (source == Cancel1) then guiSetInputEnabled(false) guiSetVisible(PoliceGui, false) showCursor(false) elseif (source == Cancel2) then guiSetInputEnabled(false) guiSetVisible(CrimGui, false) showCursor(false) end end addEventHandler ("onClientGUIClick", root, OnClick) -- Server Side -- local Police = createTeam ("Police", 0, 0, 255) local Criminal = createTeam ("Criminal", 255, 0, 0) function SetPlayerPolice() setPlayerTeam (source, getTeamFromName("Police")) end addEvent("PoliceTeam",true) addEventHandler("PoliceTeam", root, SetPlayerPolice) function SetPlayerCrim() setPlayerTeam (source, getTeamFromName("Criminal")) end addEvent("CrimTeam",true) addEventHandler("CrimTeam", root, SetPlayerCrim)
  5. Shut UPPPPPPPP F*** you think this i am idiot? stupid? F*** U you just can say "Thanks all" "Thanks all" "Thanks all" "Thanks all" "Thanks all" F*** U F*** U F*** U F*** U F*** U F*** U F*** U
  6. TAPL

    Criminal Gui

    Exactly what you want the script do? Please explain better
  7. triggerServerEvent ("doFixSkin", getLocalPlayer()) as you can see he steal this and he is asking for server side HERE also this guy stealing images .. sounds files .. etc from my server -,- he has 3 account why? answer this lol
  8. i remember MOJRM-511 was always say "you are the best" you have 3 account 1-MOJRM-511 2-adward 3-LI7IL lol
  9. stop stealing script from my servers :@ i hate who stealing from my server you register a new account just for open topic to help with stolen script? you have 3 account 1-MOJRM-511 2-adward 3-LI7IL we don't know if you have more lol
  10. lol? what is your server ip and port ??? !!!!!!!!!!
  11. thePreviousAccount: The account the player was logged into before theCurrentAccount: The account the player logged into just now
  12. function Login (thePreviousAccount, theCurrentAccount) outputChatBox (string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "").."has logged into "..getAccountName(theCurrentAccount), root, 255, 255, 0 ) end addEventHandler ("onPlayerLogin", root, Login)
  13. -- Server Side -- function Login (thePreviousAccount, theCurrentAccount) outputChatBox (getPlayerName(source).."has logged into "..getAccountName(theCurrentAccount), root, 255, 255, 0 ) end addEventHandler ("onPlayerLogin", root, Login)
  14. did you put it in meta as type server ?
  15. oh lol addEvent("sendmoney",true) addEventHandler("sendmoney", getRootElement(), function (getmoney,getplayer) local name = getPlayerName(source) local toWho = getPlayerFromName (getplayer) givePlayerMoney (toWho,tonumber(getmoney)) takePlayerMoney(source,tonumber(getmoney)) outputChatBox(name.." has sent "..tonumber(getmoney).." to "..getplayer.."!",root, 0,255,0,true) end)
  16. try this function Music() local sounds = { playSound3D("music.mp3", 614.5419921875, -1895.9779052734, 3.4590957164764, true), playSound3D("music.mp3", -404.003784179, 340.27352905273, 1.2498687076, true), playSound3D("music.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true)} setSoundMaxDistance(sounds, 10) end addEventHandler("onClientResourceStart", resourceRoot, Music)
  17. this should work as you making it function Music() playSound3D("music.mp3", 614.5419921875, -1895.9779052734, 3.4590957164764, true) playSound3D("music.mp3", -404.003784179, 340.27352905273, 1.2498687076, true) playSound3D("music.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) end addEventHandler("onClientResourceStart", resourceRoot, Music)
  18. i think is not possible, but you can attach the Player/Ped to the train
  19. i didn't get you but maybe this what you want viewtopic.php?f=91&t=36572
  20. addEvent("sendmoney",true) addEventHandler("sendmoney", getRootElement(), function (getmoney,getplayer) local name = getPlayerName(source) local toWho = getPlayerFromName (getplayer) givePlayerMoney (toWho,tonumber(getmoney)) takePlayerMoney(source,tonumber(getmoney)) outputChatBox(name.." has sent "..tonumber(getmoney).." to "..toWho.."!",getRootElement(), 0,255,0,true) end) you was forgot ")" in last line
  21. where the event in client side? triggerServerEvent("sendmoney",getLocalPlayer(),getmoney,getplayer) addEvent("sendmoney",true) addEventHandler("sendmoney", getRootElement(), function (getmoney,getplayer) local name = getPlayerName(source) local toWho = getPlayerFromName (getplayer) givePlayerMoney (toWho,tonumber(getmoney)) takePlayerMoney(source,tonumber(getmoney)) outputChatBox(name.." has sent "..tonumber(getmoney).." to "..toWho.."!",getRootElement(), 0,255,0,true) end
×
×
  • Create New...