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

0 Members and 1 Guest are viewing this topic.

Offline An0n

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
(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: 7759
  • Karma: 353
  • Sertafide Ulysses Jenius
    • View Profile
    • 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.
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side. - James Baldwin