h-a-m-z-a Posted January 13, 2014 Share Posted January 13, 2014 السلام عليكم ورحمة الله تعالى وبركاته ابي بس تلوين السيارات الى الون ازرق بدون ماتغيروا الكود بس عدلوه سويت تجارب بس مازبط TableCars = {} addEvent('swat', true) addEventHandler('swat', root, function( nameCar ) if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end local id = getVehicleModelFromName( nameCar ) if id == 563 or id == 497 then local x, y, z = unpack( AircraftIdSpawn[math.random(#AircraftIdSpawn)] ) TableCars[source] = createVehicle( id, x, y, z ) if not TableCars[source] then return end warpPedIntoVehicle ( source, TableCars[source] ) setVehicleColor(veh[source], 0, 0, 255) انا سويت دا يعني اللون ازق بس مازيط + انا لي ضفت دا السطر return end local x,y,z = getElementPosition( source ) TableCars[source] = createVehicle( id, x,y,z ) if not TableCars[source] then return end warpPedIntoVehicle ( source, TableCars[source] ) addVehicleUpgrade(TableCars[source], 1147) addVehicleUpgrade(TableCars[source], 1041) addVehicleUpgrade(TableCars[source], 1035) addVehicleUpgrade(TableCars[source], 1010) addVehicleUpgrade(TableCars[source], 1171) addVehicleUpgrade(TableCars[source], 1149) end ) ممكن تصحيح بدون ماتغير الكود Link to comment
فاّرس Posted January 13, 2014 Share Posted January 13, 2014 (edited) استبدل TableCars[source] بدلها بـ veh[source] 14 سطر Edited January 13, 2014 by Guest Link to comment
h-a-m-z-a Posted January 13, 2014 Author Share Posted January 13, 2014 اخي الانجليزة عندك مقلوبة ممكن حطها بين lua Link to comment
#DRAGON!FIRE Posted January 13, 2014 Share Posted January 13, 2014 TableCars = {} addEvent('swat', true) addEventHandler('swat', root, function( nameCar ) if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end local id = getVehicleModelFromName( nameCar ) if id == 563 or id == 497 then local x, y, z = unpack( AircraftIdSpawn[math.random(#AircraftIdSpawn)] ) TableCars[source] = createVehicle( id, x, y, z ) if not TableCars[source] then return end warpPedIntoVehicle ( source, TableCars[source] ) setVehicleColor(TableCars[source], 0, 0, 255) return end local x,y,z = getElementPosition( source ) TableCars[source] = createVehicle( id, x,y,z ) if not TableCars[source] then return end warpPedIntoVehicle ( source, TableCars[source] ) addVehicleUpgrade(TableCars[source], 1147) addVehicleUpgrade(TableCars[source], 1041) addVehicleUpgrade(TableCars[source], 1035) addVehicleUpgrade(TableCars[source], 1010) addVehicleUpgrade(TableCars[source], 1171) addVehicleUpgrade(TableCars[source], 1149) end ) Link to comment
h-a-m-z-a Posted January 13, 2014 Author Share Posted January 13, 2014 اللون عشوائي ليه Link to comment
#DRAGON!FIRE Posted January 13, 2014 Share Posted January 13, 2014 اللون عشوائي ليه 0, 0, 255 لأ .. مو عشوائي انت حاحطه Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now