GetVehicleModel
#1

Hello.... i have found this problem:

I have to do a system for buy and save cars, already done.

The vehicle ID is vconc[playerid]

I wanna make if the player press "Y" key spawn the car in the garage, already done:
SetVehiclePos(vconc[playerid],2093.0139,-2450.2568,13.6596);

But if y want to save the CAR MODEL, example
pVeh1 is the slot to save the car
If the player buy the car, will be:
pVeh1 = <vehiclemodel>
So
OnPlayerConnect
if(pVeh1 != INVALID_VEHICLE_MODEL) CreateVehicle(MODEL(pVeh),blah,blah,blah);


HOW?

Thanks!
Reply


Messages In This Thread
GetVehicleModel - by |-Ruben-| - 06.12.2011, 17:38
Re: GetVehicleModel - by TheArcher - 06.12.2011, 17:40
Re: GetVehicleModel - by AndreT - 06.12.2011, 17:44
Re: GetVehicleModel - by |-Ruben-| - 06.12.2011, 17:46
Re: GetVehicleModel - by TheArcher - 06.12.2011, 19:16

Forum Jump:


Users browsing this thread: 1 Guest(s)