Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. marker = nil function createBlips ( ) local vehicle = getElementModel ( source ) if ( getElementModel ( source ) == 498 ) then loc = math.random ( #locations ) robMarker = createMarker ( locations[loc][1], locations[loc][2], locations[loc][3], "cylinder", 1.5, 255, 255, 255, 150 ) marker = robMarker setElementInterior ( robMarker, locations[loc][7] ) startBlip = createBlip ( locations[loc][4], locations[loc][5], locations[loc][6], 32 ) end end addEventHandler ("onClientVehicleEnter", getRootElement (), createBlips ) function hitElement ( hitPlayer, matchingDimension ) if ( hitPlayer ) then local x, y, z = getElementPosition ( hitPlayer ) local object = createObject ( 1429, x, y, z-5 ) attachElements ( object, hitPlayer, 0, 0.5, 0 ) end end addEventHandler ( "onClientMarkerHit", marker, hitElement )
  2. function createBlips ( ) local vehicle = getElementModel ( source ) if ( getElementModel ( source ) == 498 ) then loc = math.random ( #locations ) robMarker = createMarker ( locations[loc][1], locations[loc][2], locations[loc][3], "cylinder", 1.5, 255, 255, 255, 150 ) setElementInterior ( robMarker, locations[loc][7] ) startBlip = createBlip ( locations[loc][4], locations[loc][5], locations[loc][6], 32 ) end end addEventHandler ("onClientVehicleEnter", getRootElement (), createBlips ) function hitElement ( hitPlayer, matchingDimension ) if ( hitPlayer ) then local x, y, z = getElementPosition ( hitPlayer ) local object = createObject ( 1429, x, y, z-5 ) attachElements ( object, hitPlayer, 0, 0.5, 0 ) end end addEventHandler ( "onClientMarkerHit", robMarker, hitElement )
  3. Why should we make it for you? We're not going to give you da full code.
  4. local locations = { -- rob markers for EastLosSantos house --House EastLosSantos blip { 2341.66602, -1186.37573, 1026.97656, 2351.9699707031, 5, -1169.8599853516, 28.035507202148 }, { 2348.66870, -1186.74658, 1026.97656, 2351.9699707031, 5, -1169.8599853516, 28.035507202148 }, { 2322.23877, -1183.75879, 1026.97656, 2351.9699707031, 5, -1169.8599853516, 28.035507202148 }, -- rob markers for IdleWood house --House IdleWood blip { 326.66299, 1116.79797, 1082.88281, 2166.1999511719, 5, -1671.4699707031, 15.073687553406 }, { 316.13690, 1117.17993, 1082.88281, 2166.1999511719, 5, -1671.4699707031, 15.073687553406 }, { 309.62006, 1124.17896, 1082.88281, 2166.1999511719, 5, -1671.4699707031, 15.073687553406 }, -- rob markers for WilloField house --House WilloField blip { 2282.04590, -1135.85901, 1049.89844, 2483.3798828125, 11, -1996.1899414063, 13.834323883057 }, { 2282.36694, -1137.74646, 1049.89844, 2483.3798828125, 11, -1996.1899414063, 13.834323883057 }, { 2285.44629, -1136.67346, 1049.89844, 2483.3798828125, 11, -1996.1899414063, 13.834323883057 }, -- rob markers for Ganton house --House Ganton blip { 248.23495, 301.60382, 998.14844, 2402.5183105469, 1, -1715.6148681641, 14.1328125 }, { 243.82597, 301.51428, 998.14844, 2402.5183105469, 1, -1715.6148681641, 14.1328125 }, { 248.83932, 305.45200, 998.14844, 2402.5183105469, 1, -1715.6148681641, 14.1328125 }, -- rob markers for CJ house --house CJ blip { 2491.69287, -1694.92102, 1013.74792, 2495.330078125, 3, -1690.75, 14.765625 }, { 2500.01343, -1711.35229, 1013.74219, 2495.330078125, 3, -1690.75, 14.765625 }, { 2494.01831, -1700.84949, 1017.34375, 2495.330078125, 3, -1690.75, 14.765625 } } function createBlips ( ) local vehicle = getElementModel ( source ) if ( getElementModel ( source ) == 498 ) then loc = math.random ( #locations ) robMarker = createMarker (locations[loc][1], locations[loc][2], locations[loc][3], "cylinder", 1.5, 255, 255, 255, 150) setElementInterior ( robMarker, 1 ) setElementInterior ( robMarker, 3 ) setElementInterior ( robMarker, 5 ) setElementInterior ( robMarker, 11 ) startBlip = createBlip (locations[loc][5], locations[loc][6], locations[loc][7], 32) end end addEventHandler ("onClientVehicleEnter", getRootElement (), createBlips )
  5. A: I'll kick your face. Q: What would you do if you are a _g_i_r_l_?
  6. [lia] function ComandoNametag(source) setPlayerNametagShowing(source, not isPlayerNametagShowing(source)) end addCommandHandler("show", ComandoNametag) [/lus]
  7. local locations = { { 2351.9699707031, -1169.8599853516, 28.035507202148 }, --EastLosSantos { 2166.1999511719, -1671.4699707031, 15.073687553406 }, --house IdleWood { 2483.3798828125, -1996.1899414063, 13.834323883057 }, --house WilloField { 2402.5183105469, -1715.6148681641, 14.1328125 }, --house Ganton { 2495.330078125, -1690.75, 14.765625 } --house CJ } local markers = { -- rob markers for EastLosSantos house { 2341.66602, -1186.37573, 1027.97656 }, { 2348.66870, -1186.74658, 1027.97656 }, { 2322.23877, -1183.75879, 1027.97656 }, -- rob markers for IdleWood house { 326.66299, 1116.79797, 1083.88281 }, { 316.13690, 1117.17993, 1083.88281 }, { 309.62006, 1124.17896, 1083.88281 }, -- rob markers for WilloField house { 2282.04590, -1135.85901, 1050.89844 }, { 2282.36694, -1137.74646, 1050.89844 }, { 2285.44629, -1136.67346, 1050.89844 }, -- rob markers for Ganton house { 248.23495, 301.60382, 999.14844 }, { 243.82597, 301.51428, 999.14844 }, { 248.83932, 305.45200, 999.14844 }, -- rob markers for CJ house { 2491.69287, -1694.92102, 1014.74792 }, { 2500.01343, -1711.35229, 1014.74219 }, { 2494.01831, -1700.84949, 1018.34375 } } function createBlips ( ) local vehicle = getElementModel ( source ) if ( getElementModel ( source ) == 498 ) then loc = math.random ( #locations, #markers ) markerX, markerY, markerZ = markers[loc][1], markers[loc][2], markers[loc][3] blipX, blipY, blipZ = locations[loc][1], locations[loc][2], locations[loc][3] robMarker = createMarker ( markerX, markerY, markerZ, "cylinder", 1.5, 255, 255, 255, 175 ) startBlip = createBlipAttachedTo ( robMarker, 32 ) end end addEventHandler ("onClientVehicleEnter", getRootElement (), createBlips )
  8. Anubhav

    Headshot

    function sendHeadshot ( attacker, weapon, bodypart, loss ) if attacker ~= source then if bodypart == 9 then triggerServerEvent( "onServerHeadshot", getRootElement(), source, attacker, weapon, loss ) setElementHealth ( source, 0 ) setPedHeadless( source, true ) end end end addEventHandler ( "onClientPedDamage", getRootElement(), sendHeadshot ) addEventHandler ( "onClientPlayerDamage", getRootElement(), sendHeadshot )
  9. A: I would call your ass. Q: What would you do if hi?
  10. window = guiCreateWindow(0.4,0.35,0.25,0.25,"D'n'T Servers | Welcome on my server.", true) btnpolice = guiCreateButton(0.03,0.4,0.45,0.55,"Police", true, window) btnterrorists = guiCreateButton(0.53,0.4,0.45,0.55,"Terrorists", true, window) labelchoose = guiCreateLabel(0.3,0.1,0.5,0.3,"Choose a team to connect to.", true, window) guiWindowSetMovable(window,false) guiWindowSetSizable(window, false) guiSetVisible(window, false) showCursor(false) addEventHandler("onClientPlayerJoin", getResourceRootElement ( getThisResource ()), function() guiSetVisible(window, true) showCursor(true) end ) -- function buttonclicked(localPlayer, button) -- if button == "left" and state == "up" then -- setPlayerTeam (localPlayer, "Police") -- else -- setPlayerTeam (localPlayer, "Terrorists") -- end -- guiSetVisible(window, not guiGetVisible(window)) -- showCursor(not isCursorShowing()) -- end -- addEventHandler("onClientGUIClick", buttonred, redteam, false) function policeteam(localPlayer, button) local policeteam = getTeamFromName("Police") if button == "left" and state == "up" then if (policeteam) then setPlayerTeam(localPlayer, policeteam) else outputChatBox("We cannot assign you to Police team.", localPlayer) end guiSetVisible(window, false) showCursor(false) end end addEventHandler("onClientGUIClick", btnpolice, policeteam, false) function terroriststeam(localPlayer, button) local terroriststeam = getTeamFromName("Terrorists") if button == "left" and state == "up" then if (terroriststeam) then setPlayerTeam(localPlayer, terroriststeam) else outputChatBox("We cannot assign you to Terrorists team.", localPlayer) end guiSetVisible(window, false) showCursor(false) end end addEventHandler("onClientGUIClick", btnterrorists, terroriststeam, false)
  11. function applyClothing ( incredibleTable ) if getElementModel ( source ) ~= 0 then setElementModel ( source, 0 ) end count = 0 while count ~= 18 do if tostring(incredibleTable[count].storedValue) == "0" then removePedClothes ( source, count ) elseif tostring(incredibleTable[count].storedValue) ~= "" then --blank fields do nothing texture, model = getClothesByTypeIndex ( count, tostring(incredibleTable[count].storedValue) ) addPedClothes ( source, texture, model, count ) --outputChatBox ( "texture: "..texture.." model: "..model.." count: "..count ) end count = count + 1 end if tostring(incredibleTable[18].storedValue) ~= "" then setPedStat ( source, 21, incredibleTable[18].storedValue ) --outputChatBox ( "Fat stuff triggered" ) end if tostring(incredibleTable[19].storedValue) ~= "" and incredibleTable[19].storedValue ~= false and incredibleTable[19].storedValue ~= nil then setPedStat ( source, 23, incredibleTable[19].storedValue ) --outputChatBox ( "Strong stuff triggered" ) end end addEvent("applyClothes", true ) addEventHandler("applyClothes", root, applyClothing)
  12. createObject attachElements Afaik.
  13. function enableCameraThoughCars () setCameraClip (true,false) outputChatBox ("hueta enabled",255,0,0,false) end addEventHandler ("onClientResourceStart", root,enableCameraThoughCars)
  14. https://community.multitheftauto.com/ind ... ls&id=6721
  15. A: Me will be and kick everyones ass Q: What would you do if you are raped?!
  16. createVehicle warpPedIntoVehicle triggerClientEvent guiGridListGetSelectedItem guiGridListGetItemText addEvent addEventHandler guiCreateWindow guiCreateButton guiCreateGridList -- event: onClientGUIClick Enought?
×
×
  • Create New...