Jump to content

تصحيح كود بس


Recommended Posts

السلام عليكم ورحمة الله تعالى وبركاته

ابي بس تلوين السيارات الى الون ازرق بدون ماتغيروا الكود بس عدلوه سويت تجارب بس مازبط

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...