Sunshine Auto's - by rulk

Started by rulk, Sep 10, 2015, 07:00 PM

Previous topic - Next topic

Kewun

fixed
but another problem popped up
i add a car using /addcar carmodel colr1 colr2
works fine
but when ido /savecar, it saves in sunshine database
server restart - bam
vehicle names messed up, police vehicle is esperanto, some other police vehicle is sanchez, stallion is banshee
how i can fix this?

Mahmoud Tornado

Try This In It Too

function onPlayerEnterVehicle( player, veh, isPassenger )
{
local vehicle = player.Vehicle;

local output = @"Model: " + MyVehicles[ vehicle.ID ].VehicleModel + " - "  +
  "ID: " + MyVehicles[ vehicle.ID ].VehicleID + " - "  +
"Type: " + MyVehicles[ vehicle.ID ].VehicleCat    + " - "  +
"Price: " + MyVehicles[ vehicle.ID ].VehiclePrice;


local
      IsPurchased MyVehicles[ vehicle.ID ].IsPurchased.len() > 0 ? MyVehicles[ vehicle.ID ].IsPurchased  : "For Sale",
      IsShared = MyVehicles[ vehicle.ID ].IsShared.len()    > 0 ? MyVehicles[ vehicle.ID ].IsShared     : "Not Shared";


output = output + " - " + "Owner: " + IsPurchased + " - " + "Sharer: " + IsShared;

MessagePlayer( output, player );
}