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
#2

I don't understand what you mean exactily. And " Y " key can be detected by the client
Reply
#3

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
And " Y " key can be detected by the client
Every key can be detected by the client. However yes, since 0.3d, keys YES and NO are also sent to the server!
Reply
#4

Simply:

pVeh1 = SAVE FILE

vconc = VEHICLE ID

HOW I CAN DO CreateVehicle(MODELIDfromVCONC,blah,blah);?
Reply
#5

As much as i know you can check This GetPlayerKeys doesn't support all the keys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)