Speziallack speichert nicht in der Db

  • Vio Lite/Extended

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

  • Speziallack speichert nicht in der Db

    LUA-Quellcode: So habe ich es in der db stehen

    1. CREATE TABLE `vehicles` (
    2. `id` int(11) NOT NULL,
    3. `Kofferraum` varchar(50) NOT NULL DEFAULT '0|0|0|0|',
    4. `Besitzer` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
    5. `Typ` int(11) NOT NULL,
    6. `Tuning` varchar(255) NOT NULL,
    7. `Spawnpos_X` varchar(50) NOT NULL,
    8. `Spawnpos_Y` varchar(50) NOT NULL,
    9. `Spawnpos_Z` varchar(50) NOT NULL,
    10. `Spawnrot_X` varchar(50) NOT NULL,
    11. `Spawnrot_Y` varchar(50) NOT NULL,
    12. `Spawnrot_Z` varchar(50) NOT NULL,
    13. `Farbe` varchar(50) NOT NULL,
    14. `Paintjob` varchar(50) NOT NULL,
    15. `Benzin` varchar(50) NOT NULL,
    16. `Slot` float NOT NULL,
    17. `Special` int(11) NOT NULL DEFAULT '0',
    18. `neon` text NOT NULL,
    19. `spezcolor` varchar(50) NOT NULL DEFAULT '|0|0|0|0|0|0|',
    20. `Lights` varchar(50) NOT NULL DEFAULT '|255|255|255|',
    21. `Distance` double NOT NULL DEFAULT '0',
    22. `STuning` varchar(50) NOT NULL DEFAULT '0|0|0|0|0|0|',
    23. `AuktionsID` int(10) NOT NULL DEFAULT '0',
    24. `GangVehicle` tinyint(1) NOT NULL DEFAULT '0',
    25. `rc` int(1) NOT NULL DEFAULT '0'
    26. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    Alles anzeigen
    Moin Leute,
    Ich bin gerade dabei das Speziallackscript in Vio Extended einzubringen. Hier gibt es schon mehrere Themen dazu aber irgendwie wurde es noch nicht wirklich gelöst. Man kann sein Speziallack auswählen aber sobald man das Fahrzeug respawnt hat man wieder den Lack mit dem man vorher in den Marker gefahren ist. Anscheinend wird es ja nicht abgespeichert in der Db. Was genau muss ich in der Datenbank hinzufügen und wie genau frage ich das ganze in der park funktion oder respawn funktion ab ?

    LUA-Quellcode: Park Funktion

    1. function park_func ( player, command )
    2. if getPedOccupiedVehicleSeat ( player ) == 0 then
    3. local veh = getPedOccupiedVehicle ( player )
    4. if vioGetElementData ( veh, "owner" ) == getPlayerName ( player ) then
    5. if isTrailerInParkingZone ( veh ) then
    6. local x, y, z = getElementPosition ( veh )
    7. local rx, ry, rz = getVehicleRotation ( veh )
    8. local c1, c2, c3, c4 = getVehicleColor ( veh )
    9. vioSetElementData ( veh, "spawnposx", x )
    10. vioSetElementData ( veh, "spawnposy", y )
    11. vioSetElementData ( veh, "spawnposz", z )
    12. vioSetElementData ( veh, "spawnrotx", rx )
    13. vioSetElementData ( veh, "spawnroty", ry )
    14. vioSetElementData ( veh, "spawnrotz", rz )
    15. vioSetElementData ( veh, "color1", c1 )
    16. vioSetElementData ( veh, "color2", c2 )
    17. vioSetElementData ( veh, "color3", c3 )
    18. vioSetElementData ( veh, "color4", c4 )
    19. outputChatBox ( "Fahrzeug geparkt!", player, 0, 255, 0 )
    20. local Spawnpos_X, Spawnpos_Y, Spawnpos_Z = getElementPosition ( veh )
    21. local Spawnrot_X, Spawnrot_Y, Spawnrot_Z = getVehicleRotation ( veh )
    22. local Farbe1, Farbe2, Farbe3, Farbe4 = getVehicleColor ( veh )
    23. local color = "|"..Farbe1.."|"..Farbe2.."|"..Farbe3.."|"..Farbe4.."|"
    24. local Paintjob = getVehiclePaintjob ( veh )
    25. local Benzin = vioGetElementData ( veh, "fuelstate" )
    26. local pname = vioGetElementData ( veh, "owner" )
    27. local Distance = vioGetElementData ( veh, "distance" )
    28. local slot = vioGetElementData ( veh, "carslotnr_owner" )
    29. MySQL_SetString("vehicles", "Spawnpos_X", Spawnpos_X, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    30. MySQL_SetString("vehicles", "Spawnpos_Y", Spawnpos_Y, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    31. MySQL_SetString("vehicles", "Spawnpos_Z", Spawnpos_Z, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    32. MySQL_SetString("vehicles", "Spawnrot_X", Spawnrot_X, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    33. MySQL_SetString("vehicles", "Spawnrot_Y", Spawnrot_Y, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    34. MySQL_SetString("vehicles", "Spawnrot_Z", Spawnrot_Z, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    35. --MySQL_SetString("vehicles", "Farbe", color, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    36. MySQL_SetString("vehicles", "Paintjob", Paintjob, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    37. MySQL_SetString("vehicles", "Benzin", Benzin, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    38. MySQL_SetString("vehicles", "Distance", Distance, "Besitzer LIKE '" ..pname.."' AND Slot LIKE '" ..slot.. "' ")
    39. else
    40. outputChatBox ( "Dieses Fahrzeug kannst du nicht in der Stadt parken!", player, 125, 0, 0 )
    41. end
    42. else
    43. outputChatBox ( "Dieses Fahrzeug gehoert dir nicht!", player, 255, 0, 0 )
    44. end
    45. else
    46. outputChatBox ( "Du musst in einem Fahrzeug sitzen!", player, 255, 0, 0 )
    47. end
    48. end
    49. addCommandHandler ( "park", park_func )
    Alles anzeigen

    LUA-Quellcode: Die normale Funktion an sich

    1. ----------------------------------------------------
    2. ----------------------------------------------------
    3. ------ Copyright (c) 2013 by [vio]Lars-Marcel ------
    4. ----------------------------------------------------
    5. ----------------------------------------------------
    6. createBlip ( -1786.779, 1215.474, 24.5, 27, 2, 255, 0, 0, 255, 0, 200)
    7. setGarageOpen(24, true)
    8. local marker = createMarker( -1786.779, 1215.474, 24.5, "cylinder", 2, 255, 0, 0, 255 )
    9. local pickup = createPickup( -1782.215, 1205.233, 25, 3, 1239, 1, 99 )
    10. function showSpezialLack_func(player)
    11. if isAdminLevel ( player, 1 ) then
    12. local veh = getPedOccupiedVehicle(player)
    13. if veh then
    14. if vioGetElementData ( veh, "owner" ) == getPlayerName ( player ) then
    15. setElementData ( player, "ElementClicked", true )
    16. setElementFrozen(veh, true)
    17. toggleControl ( player, "enter_exit", false )
    18. triggerClientEvent (player, "showMichelles", player)
    19. local dim = math.random(5000,9000)
    20. setElementDimension(veh, dim)
    21. setElementDimension(player, dim)
    22. else
    23. outputChatBox ( "Du kannst nur deine Privatfahrzeuge tunen!", player, 125, 0, 0 )
    24. end
    25. end
    26. else
    27. outputChatBox("Nur für Premium-User!", player, 255, 155, 0)
    28. end
    29. end
    30. addEventHandler("onMarkerHit", marker, showSpezialLack_func)
    31. function seeSpezialLack_func(red1, green1, blue1, red2, green2, blue2)
    32. local player = source
    33. local red1 = red1 * 2.55
    34. local green1 = green1 * 2.55
    35. local blue1 = blue1 * 2.55
    36. local red2 = red2 * 2.55
    37. local green2 = green2 * 2.55
    38. local blue2 = blue2 * 2.55
    39. local veh = getPedOccupiedVehicle(player)
    40. if veh then
    41. setVehicleColor(veh, red1, green1, blue1, red2, green2, blue2)
    42. else
    43. return false
    44. end
    45. end
    46. addEvent( "seeSpezialLack", true )
    47. addEventHandler( "seeSpezialLack", getRootElement(), seeSpezialLack_func )
    48. function buySpezialLack_func(red1, green1, blue1, red2, green2, blue2)
    49. local player = source
    50. local red1 = red1 * 2.55
    51. local green1 = green1 * 2.55
    52. local blue1 = blue1 * 2.55
    53. local red2 = red2 * 2.55
    54. local green2 = green2 * 2.55
    55. local blue2 = blue2 * 2.55
    56. local veh = getPedOccupiedVehicle(player)
    57. toggleControl ( player, "enter_exit", true )
    58. setElementClicked ( player, true )
    59. setElementDimension(veh, 0)
    60. setElementDimension(player, 0)
    61. activeCarGhostMode ( player, 10000 )
    62. if veh then
    63. setElementFrozen(veh, false)
    64. if vioGetElementData(veh, "spezcolor") == "" then
    65. if vioGetElementData(player, "money") >= 2500 then
    66. vioSetElementData(player, "money", vioGetElementData(player, "money") - 2500)
    67. else
    68. triggerClientEvent ( player, "infobox_start", getRootElement(), "\nDu hast nicht\ngenug Geld!", 5000, 255, 0, 0 )
    69. return false
    70. end
    71. --MichellesKasse = MichellesKasse + 2500
    72. else
    73. if vioGetElementData(player, "money") >= 1250 then
    74. vioSetElementData(player, "money", vioGetElementData(player, "money") - 1250)
    75. else
    76. triggerClientEvent ( player, "infobox_start", getRootElement(), "\nDu hast nicht\ngenug Geld!", 5000, 255, 0, 0 )
    77. return false
    78. end
    79. --MichellesKasse = MichellesKasse + 1250
    80. end
    81. setVehicleColor(veh, red1, green1, blue1, red2, green2, blue2)
    82. local spezcolor = "|"..red1.."|"..green1.."|"..blue1.."|"..red2.."|"..green2.."|"..blue2.."|"
    83. vioSetElementData(veh, "spezcolor", spezcolor)
    84. dbExec ( handler, "UPDATE ?? SET ??=? WHERE ??=? AND ??=?", "vehicles", "spezcolor", spezcolor, "UID", playerUID[getPlayerName(player)], "Slot", vioGetElementData(veh, "carslotnr_owner") )
    85. else
    86. return false
    87. end
    88. end
    89. addEvent( "buySpezialLack", true )
    90. addEventHandler( "buySpezialLack", getRootElement(), buySpezialLack_func )
    91. function closeSpezialLack_func(red1, green1, blue1, red2, green2, blue2)
    92. local player = source
    93. local veh = getPedOccupiedVehicle(player)
    94. toggleControl ( player, "enter_exit", true )
    95. setElementData ( player, "ElementClicked", false )
    96. setElementDimension(veh, 0)
    97. setElementDimension(player, 0)
    98. activeCarGhostMode ( player, 10000 )
    99. if veh then
    100. setElementFrozen(veh, false)
    101. setPrivVehCorrectColor(veh)
    102. else
    103. return false
    104. end
    105. end
    106. addEvent( "closeSpezialLack", true )
    107. addEventHandler( "closeSpezialLack", getRootElement(), closeSpezialLack_func )
    108. function deleteSpezialLack_func(player)
    109. local veh = getPedOccupiedVehicle(player)
    110. if veh then
    111. local x, y, z = getElementPosition ( player )
    112. if getDistanceBetweenPoints3D ( -1782.215, 1205.233, 25, x, y, z ) <= 5 then
    113. if vioGetElementData ( veh, "owner" ) == getPlayerName ( player ) then
    114. local colors = vioGetElementData ( veh, "color" )
    115. local c1 = tonumber ( gettok ( colors, 1, string.byte( '|' ) ))
    116. local c2 = tonumber ( gettok ( colors, 2, string.byte( '|' ) ))
    117. local c3 = tonumber ( gettok ( colors, 3, string.byte( '|' ) ))
    118. local c4 = tonumber ( gettok ( colors, 4, string.byte( '|' ) ))
    119. setVehicleColor ( veh, c1, c2, c3, c4 )
    120. setTimer ( setVehicleColor, 100, 1, veh, c1, c2, c3, c4 )
    121. vioSetElementData(veh, "spezcolor", "")
    122. removeElementData(veh, "spezcolor")
    123. MySQL_SetString ( "vehicles", "spezcolor", "", "Besitzer LIKE '"..getPlayerName(player).."' AND Slot LIKE '"..vioGetElementData(veh, "carslotnr_owner").."'" )
    124. outputChatBox("Speziallack erfolgreich entfernt!", player, 0, 255, 0)
    125. else
    126. outputChatBox ( "Du kannst nur deine Privatfahrzeuge tunen!", player, 125, 0, 0 )
    127. end
    128. else
    129. outputChatBox("Du bist nicht im Icon.", player, 255, 0, 0)
    130. end
    131. end
    132. end
    133. addCommandHandler("dellack", deleteSpezialLack_func)
    134. function deleteSpezialLack_info(player)
    135. outputChatBox("Um den Speziallack zu entfernen Tippe /dellack", player, 255, 155, 0)
    136. outputChatBox("Um die Neonroehren zu entfernen Tippe /delneon", player, 255, 155, 0)
    137. end
    138. addEventHandler("onPickupHit", pickup, deleteSpezialLack_info)
    139. function seeNeon_func(color)
    140. local player = source
    141. if color then
    142. veh = getPedOccupiedVehicle(player)
    143. --triggerEvent ( "removeNeon", root, veh )
    144. removeNeon(veh)
    145. removeElementData(player, "neoncolor")
    146. setTimer ( function()
    147. triggerClientEvent("createNeonS", getRootElement(), color, veh)
    148. setElementData(player, "neoncolor", color)
    149. showCursor(player, true)
    150. end, 750, 1 )
    151. else
    152. return false
    153. end
    154. end
    155. addEvent( "seeNeon", true )
    156. addEventHandler( "seeNeon", getRootElement(), seeNeon_func )
    157. function closeNeon_func()
    158. local player = source
    159. local veh = getPedOccupiedVehicle(player)
    160. toggleControl ( player, "enter_exit", true )
    161. setElementData ( player, "ElementClicked", false )
    162. setElementDimension(veh, 0)
    163. setElementDimension(player, 0)
    164. activeCarGhostMode ( player, 10000 )
    165. if veh then
    166. setElementFrozen(veh, false)
    167. else
    168. return false
    169. end
    170. end
    171. addEvent( "closeNeon", true )
    172. addEventHandler( "closeNeon", getRootElement(), closeNeon_func )
    173. function buyNeon_func(color)
    174. local player = source
    175. local veh = getPedOccupiedVehicle(player)
    176. --local color = getElementData(player, "neoncolor")
    177. if veh and color then
    178. toggleControl ( player, "enter_exit", true )
    179. setElementData ( player, "ElementClicked", false )
    180. setElementDimension(veh, 0)
    181. setElementDimension(player, 0)
    182. activeCarGhostMode ( player, 10000 )
    183. setElementFrozen(veh, false)
    184. if vioGetElementData(veh, "neon") == "" then
    185. vioSetElementData(player, "money", vioGetElementData(player, "money") - 2500)
    186. MichellesKasse = MichellesKasse + 2500
    187. vioSetElementData(veh, "neonc", color)
    188. --triggerClientEvent("createNeonS", getRootElement(), color, veh)
    189. addNeon(veh, color)
    190. else
    191. vioSetElementData(player, "money", vioGetElementData(player, "money") - 1250)
    192. MichellesKasse = MichellesKasse + 1250
    193. vioSetElementData(veh, "neonc", color)
    194. removeNeon(veh)
    195. setTimer ( function()
    196. --triggerClientEvent("createNeonS", getRootElement(), color, veh)
    197. addNeon(veh, color)
    198. end, 500, 1 )
    199. end
    200. MySQL_SetString ( "vehicles", "neon", color, "Besitzer LIKE '"..getPlayerName(player).."' AND Slot LIKE '"..vioGetElementData(veh, "carslotnr_owner").."'" )
    201. else
    202. return false
    203. end
    204. end
    205. addEvent( "buyNeon", true )
    206. addEventHandler( "buyNeon", getRootElement(), buyNeon_func )
    207. function deleteNeon_func(player)
    208. local veh = getPedOccupiedVehicle(player)
    209. if veh then
    210. local x, y, z = getElementPosition ( player )
    211. if getDistanceBetweenPoints3D ( -1782.215, 1205.233, 25, x, y, z ) <= 5 then
    212. if vioGetElementData ( veh, "owner" ) == getPlayerName ( player ) then
    213. if vioGetElementData(veh, "neonc") then
    214. removeNeon(veh)
    215. vioSetElementData(veh, "neonc", "")
    216. removeElementData(veh, "neonc")
    217. removeElementData(veh, "neon")
    218. MySQL_SetString ( "vehicles", "neon", "", "Besitzer LIKE '"..getPlayerName(player).."' AND Slot LIKE '"..vioGetElementData(veh, "carslotnr_owner").."'" )
    219. outputChatBox("Neonroehren erfolgreich entfernt!", player, 0, 255, 0)
    220. else
    221. outputChatBox("Dein Fahrzeug hat keine Neonroehren.", player, 255, 155, 0)
    222. end
    223. else
    224. outputChatBox ( "Du kannst nur deine Privatfahrzeuge tunen!", player, 125, 0, 0 )
    225. end
    226. else
    227. outputChatBox("Du bist nicht im Icon.", player, 255, 0, 0)
    228. end
    229. end
    230. end
    231. addCommandHandler("delneon", deleteNeon_func)
    232. function closeMichelles_func()
    233. local player = source
    234. setElementData ( player, "ElementClicked", false )
    235. toggleControl ( player, "enter_exit", true )
    236. local veh = getPedOccupiedVehicle(player)
    237. setElementFrozen(veh, false)
    238. setElementDimension(veh, 0)
    239. setElementDimension(player, 0)
    240. activeCarGhostMode ( player, 10000 )
    241. end
    242. addEvent( "closeMichelles", true )
    243. addEventHandler( "closeMichelles", getRootElement(), closeMichelles_func )
    Alles anzeigen

    LUA-Quellcode: Respawn Funktion

    1. function respawnPrivVeh ( carslot, pname )
    2. if not isElement ( _G[getPrivVehString ( pname, carslot )] ) or ( not getVehicleOccupant ( _G[getPrivVehString ( pname, carslot )] ) and not getVehicleOccupant ( _G[getPrivVehString ( pname, carslot )], 1 ) and not getVehicleOccupant ( _G[getPrivVehString ( pname, carslot )], 2 ) and not getVehicleOccupant ( _G[getPrivVehString ( pname, carslot )], 3 ) ) then
    3. if tonumber ( MySQL_GetString("vehicles", "AuktionsID", "Besitzer LIKE '"..pname.."' AND Slot LIKE '"..carslot.."'") ) == 0 then
    4. local dsatz
    5. local result = mysql_query ( handler, "SELECT * from vehicles WHERE Besitzer LIKE '"..pname.."' AND Slot LIKE '"..carslot.."'" )
    6. if result then
    7. if ( mysql_num_rows ( result ) > 0 ) then
    8. dsatz = mysql_fetch_assoc ( result )
    9. end
    10. mysql_free_result ( result )
    11. end
    12. destroyMagnet ( _G[getPrivVehString ( pname, carslot )] )
    13. local Besitzer = pname
    14. local Slot = carslot
    15. MySQL_SetString("vehicles", "Benzin", vioGetElementData(_G[getPrivVehString ( pname, carslot )],"fuelstate"), "Besitzer LIKE '"..pname.."' AND Slot LIKE '"..carslot.."'")
    16. if vioGetElementData ( _G[getPrivVehString ( pname, carslot )], "special" ) == 2 then
    17. detachElements ( _G["ObjYacht"..Besitzer..Slot], _G[getPrivVehString ( pname, carslot )] )
    18. destroyElement ( _G["ObjYacht"..Besitzer..Slot] )
    19. special = 2
    20. end
    21. destroyElement ( _G[getPrivVehString ( pname, carslot )] )
    22. local Typ = dsatz["Typ"]
    23. local Last_Login_Besitzer_Tag = MySQL_GetString("players", "Last_login", "Name LIKE '" ..pname.."'")
    24. local Tuning = dsatz["Tuning"]
    25. local Spawnpos_X = dsatz["Spawnpos_X"]
    26. local Spawnpos_Y = dsatz["Spawnpos_Y"]
    27. local Spawnpos_Z = dsatz["Spawnpos_Z"]
    28. local Spawnrot_X = dsatz["Spawnrot_X"]
    29. local Spawnrot_Y = dsatz["Spawnrot_Y"]
    30. local Spawnrot_Z = dsatz["Spawnrot_Z"]
    31. local spezcolor = dsatz["spezcolor"]
    32. local Farbe = dsatz["Farbe"]
    33. local LFarbe = dsatz["Lights"]
    34. local Paintjob = dsatz["Paintjob"]
    35. local Benzin = dsatz["Benzin"]
    36. local Distanz = dsatz["Distance"]
    37. local STuning = dsatz["STuning"]
    38. _G[getPrivVehString ( pname, carslot )] = createVehicle ( Typ, Spawnpos_X, Spawnpos_Y, Spawnpos_Z, 0, 0, 0, Besitzer )
    39. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "owner", Besitzer )
    40. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "name", _G[getPrivVehString ( pname, carslot )] )
    41. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "carslotnr_owner", Slot )
    42. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "locked", true )
    43. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "color", Farbe )
    44. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "spezcolor", spezcolor )
    45. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "lcolor", LFarbe )
    46. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "spawnpos_x", Spawnpos_X )
    47. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "spawnpos_y", Spawnpos_Y )
    48. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "spawnpos_z", Spawnpos_Z )
    49. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "spawnrot_x", Spawnrot_X )
    50. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "spawnrot_y", Spawnrot_Y )
    51. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "spawnrot_z", Spawnrot_Z )
    52. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "distance", Distanz )
    53. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "stuning", STuning )
    54. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "rcVehicle", tonumber ( dsatz["rc"] ) )
    55. setVehicleLocked ( _G[getPrivVehString ( pname, carslot )], true )
    56. vioSetElementData ( _G[getPrivVehString ( pname, carslot )], "fuelstate", Benzin )
    57. setPrivVehCorrectColor ( _G[getPrivVehString ( pname, carslot )] )
    58. setPrivVehCorrectLightColor ( _G[getPrivVehString ( pname, carslot )] )
    59. setVehiclePaintjob ( _G[getPrivVehString ( pname, carslot )], Paintjob )
    60. if special == 2 then
    61. local both = Besitzer..Slot
    62. _G["ObjYacht"..both] = createObject ( 1337, 0, 0, 0 )
    63. attachElements ( _G["ObjYacht"..Besitzer..Slot], _G[getPrivVehString ( pname, carslot )], 0, 2, 1.55 )
    64. setElementDimension ( _G["ObjYacht"..both], 1 )
    65. end
    66. setVehicleRotation ( _G[getPrivVehString ( pname, carslot )], Spawnrot_X, Spawnrot_Y, Spawnrot_Z )
    67. pimpVeh ( _G[getPrivVehString ( pname, carslot )], Tuning )
    68. setVehicleAsMagnetHelicopter ( _G[getPrivVehString ( pname, carslot )] )
    69. return true
    70. end
    71. end
    72. return false
    73. end
    Alles anzeigen