Squirrel/Client/Functions/Vehicles/Model

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<code lang="squirrel"> function onClientCommand(cmd,text { if ( cmd == "getvehiclemodel" ) { Message("The model of vehicle ID 0 is: "+FindVehicle(0).Mod...")
 

Latest revision as of 13:56, 3 September 2017

  1.  
  2. function onClientCommand(cmd,text
  3. {
  4. if ( cmd == "getvehiclemodel" )
  5. {
  6. Message("The model of vehicle ID 0 is: "+FindVehicle(0).Model);
  7. }
  8. }
  9.  

A player who writes /getvehiclemodel will message on chat the veh model of vehicle id 0

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox