Author Topic: (Help) ULX gotocar command  (Read 2112 times)

0 Members and 1 Guest are viewing this topic.

Offline An0n

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
(Help) ULX gotocar command
« on: November 16, 2017, 02:48:16 PM »
Hey!
I have tried to make my own !gotocar command, but I simply don't know what I should put in, I've watched a tutorial... “ Custom Commands In ULX “ that was just a video of a guy doing !respawn <playername>. If someone could help me, it would be much appreciated.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: (Help) ULX gotocar command
« Reply #1 on: November 16, 2017, 06:59:54 PM »
Well, start by looking at the ulx.tp code. Then figure out how to get the position of the car.
There may not be an "easy" way to determine the name of any car in gmod using lua, but, perhaps you're working with a SENT that already has listed cars in some sort of table.
From there, list the code you've developed and the errors. Pay close attention to lua errors - they tell you exact line issues normally.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming