function Change_ ( scheck )
if not isPedInVehicle ( source ) then return outputChatBox( "#ffffff[#ff9900Userpanel#ffffff] You Must Be in a Vehicle!", source, 255, 255, 0, true ) end
if getPlayerMoney ( source ) < 20000 then return outputChatBox( "#ffffff[#ff9900Userpanel#ffffff] You Don't Have Money!", source, 255, 255, 0, true ) end
takePlayerMoney ( source,20000 )
local success = addVehicleUpgrade ( getPedOccupiedVehicle ( source ), scheck )
if not ( success ) then return outputChatBox( "#ffffff[#ff9900Userpanel#ffffff] Failed to Add The Wheel.", source, 255, 255, 0, true ) end
return outputChatBox( "#ffffff[#ff9900Userpanel#ffffff] #ffffffI've been Successfully buying rim", source, 255, 153, 3, true )
end
addEvent("addWheel",true)
addEventHandler("addWheel",root,Change_)
لم يتم التجربة ..