Waffen Ultimate Script

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Waffen Ultimate Script

    Hey ich habe ein Problem. Nämlich würde ich gerne die Waffen des FBI´s ändern aber ich finde in der fbi_funcs.lua datei nicht die Waffen. In der Army und PD ist es dort eingetragen aber im FBI nicht. Woanders finde ich die Waffen leider nicht kann mir da jmd helfen?

    Quellcode: fbi_funcs.lua

    1. FBIDutyIcon = createPickup ( 1002.11277, -11.77045, 248.5625, 3, 1239, 50 )
    2. FBIDutyIcon2 = createPickup ( -2446.488769, 518.59045, 30.22632, 3, 1239, 50 )
    3. setElementInterior ( FBIDutyIcon, 10 )
    4. function FBIDutyIconHit ( player )
    5. outputChatBox ( "Tippe /duty [1-4] oder /swat, um in den Dienst zu gehen!", player, 125, 0, 0 )
    6. end
    7. addEventHandler ( "onPickupHit", FBIDutyIcon, FBIDutyIconHit )
    8. addEventHandler ( "onPickupHit", FBIDutyIcon2, FBIDutyIconHit )
    9. function sendMSGToBoxville ( msg )
    10. if getVehicleOccupant ( FederalBoxville, 0 ) then
    11. outputChatBox ( msg, getVehicleOccupant ( FederalBoxville, 0 ), 200, 200, 0 )
    12. elseif getVehicleOccupant ( FederalBoxville, 1 ) then
    13. outputChatBox ( msg, getVehicleOccupant ( FederalBoxville, 1 ), 200, 200, 0 )
    14. elseif getVehicleOccupant ( FederalBoxville, 2 ) then
    15. outputChatBox ( msg, getVehicleOccupant ( FederalBoxville, 2 ), 200, 200, 0 )
    16. elseif getVehicleOccupant ( FederalBoxville, 3 ) then
    17. outputChatBox ( msg, getVehicleOccupant ( FederalBoxville, 3 ), 200, 200, 0 )
    18. end
    19. end
    20. function ram_func ( player )
    21. if isOnDuty(player) and vioGetElementData ( player, "rang" ) >= 3 then
    22. local house = vioGetElementData ( player, "house" )
    23. local px, py, pz = getElementPosition ( player )
    24. local hx, hy, hz = getElementPosition ( house )
    25. if getDistanceBetweenPoints3D ( px, py, pz, hx, hy, hz ) <= 5 then
    26. if ( getElementModel ( house ) == 1273 or getElementModel ( house ) == 1272 ) and vioGetElementData ( house, "curint" ) > 0 then
    27. local i = vioGetElementData ( house, "curint" )
    28. vioSetElementData ( player, "curIntIn", i )
    29. local int, intx, inty, intz = getInteriorData ( i )
    30. local dim = vioGetElementData ( house, "id" )
    31. if i == 0 then
    32. dim = 0
    33. end
    34. setElementDimension ( player, dim )
    35. fadeElementInterior ( player, int, intx, inty, intz )
    36. triggerClientEvent ( player, "infobox_start", getRootElement(), "Tippe /out, um\ndas Haus zu\nverlassen und\ndruecke F2, um\ndas Hausmenue zu\noeffnen.", 7500, 125, 0, 0 )
    37. bindKey ( player, "F2", "down", house_func )
    38. end
    39. else
    40. triggerClientEvent ( player, "infobox_start", getRootElement(), "\n\nDu bist bei\nkeinem Haus!", 7500, 125, 0, 0 )
    41. end
    42. else
    43. outputChatBox ( "Diese Funktion steht dir erst ab Rang 3 zur Verfuegung.", player, 125, 0, 0 )
    44. end
    45. end
    46. addCommandHandler ( "ram", ram_func )
    47. function killawanze_func ( player, _, wich )
    48. if isFBI(player) and vioGetElementData ( player, "rang" ) >= 2 then
    49. wich = tonumber(wich)
    50. local bool = false
    51. if wich == 1 and isElement( _G["Wanze"..wich] ) then
    52. killWanze ( wich )
    53. bool = true
    54. end
    55. if wich == 2 and isElement( _G["Wanze"..wich] ) then
    56. killWanze ( wich )
    57. bool = true
    58. end
    59. if wich == 3 and isElement( _G["Wanze"..wich] ) then
    60. killWanze ( wich )
    61. bool = true
    62. end
    63. if bool == false then
    64. outputChatBox ( "Keine Wanze mit dieser Nummer.", player, 125, 0, 0 )
    65. end
    66. end
    67. end
    68. addCommandHandler ( "killwanze", killawanze_func )
    69. function refreshBlipsForBoxville ( veh )
    70. if veh == FederalBoxville then
    71. for i = 1, 3 do
    72. if _G["Wanze"..i.."Blip"] then
    73. setElementVisibleTo ( _G["Wanze"..i.."Blip"], getRootElement(), false )
    74. end
    75. end
    76. if getVehicleOccupant ( FederalBoxville, 0 ) then
    77. for i = 1, 3 do
    78. if _G["Wanze"..i.."Blip"] then
    79. setElementVisibleTo ( _G["Wanze"..i.."Blip"], getVehicleOccupant ( FederalBoxville, 0 ), true )
    80. end
    81. end
    82. elseif getVehicleOccupant ( FederalBoxville, 1 ) then
    83. for i = 1, 3 do
    84. if _G["Wanze"..i.."Blip"] then
    85. setElementVisibleTo ( _G["Wanze"..i.."Blip"], getVehicleOccupant ( FederalBoxville, 1 ), true )
    86. end
    87. end
    88. elseif getVehicleOccupant ( FederalBoxville, 2 ) then
    89. for i = 1, 3 do
    90. if _G["Wanze"..i.."Blip"] then
    91. setElementVisibleTo ( _G["Wanze"..i.."Blip"], getVehicleOccupant ( FederalBoxville, 2 ), true )
    92. end
    93. end
    94. elseif getVehicleOccupant ( FederalBoxville, 3 ) then
    95. for i = 1, 3 do
    96. if _G["Wanze"..i.."Blip"] then
    97. setElementVisibleTo ( _G["Wanze"..i.."Blip"], getVehicleOccupant ( FederalBoxville, 3 ), true )
    98. end
    99. end
    100. end
    101. end
    102. end
    103. function refreshBlipsForBoxvilleExit ( veh )
    104. if veh == FederalBoxville then
    105. for i = 1, 3 do
    106. if _G["Wanze"..i.."Blip"] then
    107. setElementVisibleTo ( _G["Wanze"..i.."Blip"], source, false )
    108. end
    109. end
    110. end
    111. end
    112. addEventHandler ( "onResourceStart", resourceRoot, function()
    113. addEventHandler ( "onPlayerVehicleEnter", FederalBoxville, refreshBlipsForBoxville )
    114. addEventHandler ( "onPlayerVehicleExit", FederalBoxville, refreshBlipsForBoxvilleExit )
    115. end )
    116. function wanze_func ( player )
    117. if isFBI ( player ) then
    118. outputChatBox ( "Wanze bereit - klicke auf eine Gegenstand oder ein Fahrzeug in deiner Naehe!", player, 0, 125, 0 )
    119. vioSetElementData ( player, "wanzen", true )
    120. else
    121. outputChatBox ( "Du bist kein Agent des FBI!", player, 125, 0, 0 )
    122. end
    123. end
    124. addCommandHandler ( "wanze", wanze_func )
    125. function createWanze ( player, clickedElement, x, y, z )
    126. if not x then
    127. x, y, z = getElementPosition ( clickedElement )
    128. end
    129. local px, py, pz = getElementPosition ( player )
    130. if getDistanceBetweenPoints3D ( px, py, pz, x, y, z ) < 5 then
    131. if vioGetElementData ( player, "rang" ) >= 2 then
    132. if wanzen <= 2 then
    133. local c
    134. for i = 1, 3 do
    135. if not _G["Wanze"..i] then
    136. c = i
    137. break
    138. end
    139. end
    140. if not clickedElement then
    141. outputChatBox ( "Wanze platziert!", player, 0, 125, 0 )
    142. vioSetElementData ( player, "wanzen", false )
    143. showCursor ( player, false )
    144. setElementClicked ( player, false )
    145. _G["Wanze"..c] = createObject ( 1317, x, y, z )
    146. setTimer ( killWanze, 60*60*1000, 1, c )
    147. _G["Wanze"..c.."Blip"] = createBlip ( x, y, z, 0, 2, 255, 0, 0, 255, 0, wanzenrange, nil )
    148. wanzen = wanzen + 1
    149. setElementAlpha ( _G["Wanze"..c], 0 )
    150. elseif getElementType ( clickedElement ) == "vehicle" then
    151. outputChatBox ( "Wanze an Fahrzeug platziert!", player, 0, 125, 0 )
    152. vioSetElementData ( player, "wanzen", false )
    153. showCursor ( player, false )
    154. setElementClicked ( player, false )
    155. _G["Wanze"..c] = createObject ( 1317, x, y, z )
    156. setTimer ( killWanze, 60*60*1000, 1, c )
    157. _G["Wanze"..c.."Blip"] = createBlip ( x, y, z, 0, 2, 255, 0, 0, 255, 0, wanzenrange, nil )
    158. attachElements ( _G["Wanze"..c], clickedElement )
    159. attachElements ( _G["Wanze"..c.."Blip"], _G["Wanze"..c] )
    160. wanzen = wanzen + 1
    161. setElementAlpha ( _G["Wanze"..c], 0 )
    162. end
    163. refreshBlipsForBoxville ( FederalBoxville )
    164. else
    165. outputChatBox ( "Es sind bereits zu viele Wanzen platziert worden!", player, 125, 0, 0 )
    166. end
    167. else
    168. outputChatBox ( "Du bist nicht befugt!", player, 125, 0, 0 )
    169. end
    170. else
    171. outputChatBox ( "Du bist zu weit weg!", player, 125, 0, 0)
    172. end
    173. vioSetElementData ( player, "wanzen", false )
    174. end
    175. function killWanze ( count )
    176. destroyElement ( _G["Wanze"..count] )
    177. destroyElement ( _G["Wanze"..count.."Blip"] )
    178. sendMSGForFaction ( "Wanze Nr. "..count.." hat sich verabschiedet!", 6, 125, 0, 0 )
    179. refreshBlipsForBoxville ( veh )
    180. wanzen = wanzen - 1
    181. _G["Wanze"..count] = false
    182. end
    Alles anzeigen

    Und hier bei der Army

    Quellcode: army_funcs.lua

    1. function armyClassSpawn ( player )
    2. if not isKeyBound ( player, "1", "down", tazer_func ) then
    3. bindKey ( player, "1", "down", tazer_func )
    4. end
    5. giveWeapon ( player, 22, 170, true )
    6. if vioGetElementData ( player, "job" ) == "soldat" then
    7. giveWeapon ( player, 22, 102*2*2, true )
    8. giveWeapon ( player, 25, 90, true )
    9. giveWeapon ( player, 31, 150, true )
    10. elseif vioGetElementData ( player, "job" ) == "pionier" then
    11. giveWeapon ( player, 6, 1, true )
    12. giveWeapon ( player, 16, 6, true )
    13. giveWeapon ( player, 24, 90, true )
    14. giveWeapon ( player, 29, 200, true )
    15. elseif vioGetElementData ( player, "job" ) == "marine" then
    16. giveWeapon ( player, 24, 90, true )
    17. giveWeapon ( player, 25, 50, true )
    18. elseif vioGetElementData ( player, "job" ) == "air" then
    19. giveWeapon ( player, 29, 250, true )
    20. giveWeapon ( player, 46, 3, true )
    21. giveWeapon ( player, 24, 90, true )
    22. elseif vioGetElementData ( player, "job" ) == "tankcommander" then
    23. giveWeapon ( player, 36, 6, true )
    24. giveWeapon ( player, 25, 90, true )
    25. giveWeapon ( player, 22, 90, true )
    26. giveWeapon ( player, 39, 9, true )
    27. elseif vioGetElementData ( player, "job" ) == "spaeher" then
    28. giveWeapon ( player, 23, 90, true )
    29. giveWeapon ( player, 29, 200, true )
    30. giveWeapon ( player, 34, 20, true )
    31. end
    32. setPedArmor ( player, 100 )
    33. giveWeapon ( player, 31, 300, true )
    34. end
    Alles anzeigen
  • LUA-Quellcode

    1. function duty_func ( player, cmd, skin )
    2. if vioGetElementData ( player, "fraktion" ) == 1 or isFBI ( player ) then
    3. local x, y, z = getElementPosition ( player )
    4. local px, py, pz = 258.57006835938, 109.79203033447, 1002.7518310547
    5. local px2, py2, pz2 = getElementPosition ( FBIDutyIcon )
    6. local px3, py3, pz3 = getElementPosition ( dutyIconGarage )
    7. local px4, py4, pz4 = getElementPosition ( FBIDutyIcon2 )
    8. if getDistanceBetweenPoints3D ( x, y, z, px3, py3, pz3 ) <= 5 or getDistanceBetweenPoints3D ( x, y, z, px, py, pz ) <= 5 or isNearLVPDDutyIcon ( player ) or isNearLSPDDutyIcon ( player ) then
    9. setElementHunger ( player, 100 )
    10. setElementHealth ( player, 100 )
    11. takeAllWeapons ( player )
    12. if not isOnDuty(player) then
    13. -- Schlagstock
    14. local weapon = 3
    15. local ammo = 1
    16. giveWeapon ( player, weapon, ammo, true )
    17. if vioGetElementData ( player, "rang" ) == 0 then
    18. -- Pistol ( 9mm )
    19. local weapon = 22
    20. local ammo = 102*2*2
    21. giveWeapon ( player, weapon, ammo, true )
    22. setElementModel ( player, 284)
    23. elseif vioGetElementData ( player, "rang" ) == 1 then
    24. -- Eagle
    25. local weapon = 24
    26. local ammo = 49+7
    27. giveWeapon ( player, weapon, ammo, true )
    28. -- Schrotflinte
    29. local weapon = 25
    30. local ammo = 50
    31. giveWeapon ( player, weapon, ammo, true )
    32. setElementModel ( player, 280)
    33. -- MP5
    34. local weapon = 29
    35. local ammo = 120
    36. giveWeapon ( player, weapon, ammo, true )
    37. setElementModel ( player, 281)
    38. elseif vioGetElementData ( player, "rang" ) == 2 then
    39. -- Eagle
    40. local weapon = 24
    41. local ammo = 98*2
    42. giveWeapon ( player, weapon, ammo, true )
    43. -- Schrotflinte
    44. local weapon = 25
    45. local ammo = 100
    46. giveWeapon ( player, weapon, ammo, true )
    47. -- MP5
    48. local weapon = 29
    49. local ammo = 120
    50. giveWeapon ( player, weapon, ammo, true )
    51. setElementModel ( player, 281)
    52. elseif vioGetElementData ( player, "rang" ) == 3 then
    53. -- Eagle
    54. local weapon = 24
    55. local ammo = 98*2
    56. giveWeapon ( player, weapon, ammo, true )
    57. -- Schrotflinte
    58. local weapon = 25
    59. local ammo = 100
    60. giveWeapon ( player, weapon, ammo, true )
    61. -- MP5
    62. local weapon = 29
    63. local ammo = 150
    64. giveWeapon ( player, weapon, ammo, true )
    65. -- M4
    66. local weapon = 31
    67. local ammo = 200
    68. giveWeapon ( player, weapon, ammo, true )
    69. setElementModel ( player, 282)
    70. elseif vioGetElementData ( player, "rang" ) == 4 then
    71. -- Eagle
    72. local weapon = 24
    73. local ammo = 98*2
    74. giveWeapon ( player, weapon, ammo, true )
    75. -- Schrotflinte
    76. local weapon = 25
    77. local ammo = 100
    78. giveWeapon ( player, weapon, ammo, true )
    79. -- MP5
    80. local weapon = 29
    81. local ammo = 150
    82. giveWeapon ( player, weapon, ammo, true )
    83. -- M4
    84. local weapon = 31
    85. local ammo = 200
    86. giveWeapon ( player, weapon, ammo, true )
    87. -- Sniper
    88. local weapon = 34
    89. local ammo = 5
    90. giveWeapon ( player, weapon, ammo, true )
    91. setElementModel ( player, 288)
    92. elseif vioGetElementData ( player, "rang" ) == 5 then
    93. -- Eagle
    94. local weapon = 24
    95. local ammo = 196*2
    96. giveWeapon ( player, weapon, ammo, true )
    97. -- Schrotflinte
    98. local weapon = 25
    99. local ammo = 200
    100. giveWeapon ( player, weapon, ammo, true )
    101. -- MP5
    102. local weapon = 29
    103. local ammo = 450
    104. giveWeapon ( player, weapon, ammo, true )
    105. -- M4
    106. local weapon = 31
    107. local ammo = 600
    108. giveWeapon ( player, weapon, ammo, true )
    109. -- Sniper
    110. local weapon = 34
    111. local ammo = 20
    112. giveWeapon ( player, weapon, ammo, true )
    113. setElementModel ( player, 283)
    114. end
    115. local armor = 100
    116. setPedArmor ( player, armor )
    117. bindKey ( player, "1", "down", tazer_func )
    118. else
    119. triggerClientEvent ( player, "infobox_start", getRootElement(), "\n\nDu bist bereits\nim Dienst!", 7500, 125, 0, 0 )
    120. end
    121. elseif ( getDistanceBetweenPoints3D ( x, y, z, px2, py2, pz2 ) <= 5 or getDistanceBetweenPoints3D ( x, y, z, px4, py4, pz4 ) <= 5 or isNearLVPDDutyIcon ( player ) ) and isFBI ( player ) then
    122. if not isOnDuty(player) then
    123. setElementHunger ( player, 100 )
    124. setElementHealth ( player, 100 )
    125. takeAllWeapons ( player )
    126. if skin == "2" then
    127. setElementModel ( player, 165 )
    128. elseif skin == "3" then
    129. setElementModel ( player, 164 )
    130. elseif skin == "4" then
    131. setElementModel ( player, 163 )
    132. else
    133. setElementModel ( player, 286 )
    134. end
    135. local rang = vioGetElementData ( player, "rang" )
    136. if rang < 1 then
    137. giveWeapon ( player, 23, 102*2*2 ) -- Silenced
    138. else
    139. giveWeapon ( player, 29, 300 ) -- MP5
    140. if rang >= 2 then
    141. giveWeapon ( player, 24, 49*2 ) -- Deagle
    142. end
    143. if rang >= 3 then
    144. giveWeapon ( player, 31, 450 ) -- M4
    145. end
    146. if rang >= 4 then
    147. giveWeapon ( player, 34, 11 ) -- Sniper
    148. end
    149. end
    150. local armor = 100
    151. setPedArmor ( player, armor )
    152. triggerClientEvent ( player, "sec_armor_give", getRootElement(), armor )
    153. bindKey ( player, "1", "down", tazer_func )
    154. else
    155. triggerClientEvent ( player, "infobox_start", getRootElement(), "\n\nDu bist bereits\nim Dienst!", 7500, 125, 0, 0 )
    156. end
    157. else
    158. triggerClientEvent ( player, "infobox_start", getRootElement(), "\nDu bist nicht\nan der Richtigen\nStelle", 7500, 125, 0, 0 )
    159. end
    160. end
    161. end
    162. addCommandHandler ( "duty", duty_func )
    Alles anzeigen
    Das sollte es sein.

    Black schrieb:

    Och hoffe ihr bekommt mal ein Blitz ins Auge

    Es gibt Leute, die geizen mit ihrem Verstand wie andere mit ihrem Geld

    Mein Ultimate Edit: github.com/n0pe97/Ultimate-Edit

    Mein GitHub: GitHub
    Discord: n0pe#3317
    Teamspeak: Visual-Life