Engine ZCMD Command
#1

Hello
I want to make a ZCMD Engine command(/car engine) Ive seen some tutorials but the code is quite long and confsuing. I saw a smaller one and this what I saw.

new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(engine == VEHICLE_PARAMS_ON)
{
// do shit
}
if(engine == VEHICLE_PARAMS_OFF)
{
// do shit
}


How can I make this into a ZCMD Command and use /car engine to enable and disable the engine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)