Jump to content

!vehicle script help


Aggressor

Recommended Posts

Posted

Hey,

I have my server & script running, but the !vehicle script doesnt work correctly.

elseif ($3 == !vehicle && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true) {

mta.say $1 $mta.name($1,$4) $+ 's vehicle: $mta.vehicle($1,$4).name

Whats wrong about it? if i put. ($1,$4).vehicle it only returns the number.

Thx for help

Posted
that's cause mta.vehicle alias does not have an .vehicle propertie, so it returns just mta.vehicle (its id), what for you want to put that?

Example: if someone is in a car, and i put !vehicle 4, so it displays the players car.

Like Stinger, or Apache.

Posted
:? hmm, Admin+ on?

Yes, if put its $mta.vehicle($1,$4).vehicle, its returning number of the car (only the ID), but i want whole vehicle name.

damn told you that $mta.vehicle has no .vehicle prop, cant you read? :evil: it will return the same as just $mta.vehicle, you need $mta.vehicle($1,$4).name to return the name of the vehicle

If even $mta.vehicle($1,$4).name doesnt work make sure that you have original mta.data.ini in your mtama dir

Posted
:? hmm, Admin+ on?

Yes, if put its $mta.vehicle($1,$4).vehicle, its returning number of the car (only the ID), but i want whole vehicle name.

damn told you that $mta.vehicle has no .vehicle prop, cant you read? :evil: it will return the same as just $mta.vehicle, you need $mta.vehicle($1,$4).name to return the name of the vehicle

If even $mta.vehicle($1,$4).name doesnt work make sure that you have original mta.data.ini in your mtama dir

Ok thanks, yes i read your post, it was mta.data.ini that was corrupted somehow. Now it works like it should.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...