Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. Hi. I'm having a big issue where the NPCs are floating above the ground even though I was not in noclip when getting the position. Any idea on how to fix? Thanks.
  2. Furthermore. I have created this NPC
  3.  
  4. extras = {
  5. name = "Extras",
  6. model = {"models/Characters/hostage_04.mdl"},
  7. pos = {
  8. [1] = {
  9. pos = Vector(-6936.791016, -9264.370117, 4252.031250),
  10. angle = Angle(0.000, 90.000, 0.000),
  11. }
  12. },
  13. limit = 0.25
  14. },
  15.  
  16. and added the Mayor job to it but it still appears everywhere around the server.
  17.  
  18. Next, how can I set a strict limit like only 2 people can become a job without using the percentage?
  19.  
  20. And last but not least, I am using WMC Jobs and this comes with an external file which adds jobs to the game:
  21.  
  22. TEAM_CAMERAMAN = AddExtraTeam("Camera Man", {
  23. color = Color(170, 210, 38, 255),
  24. model = "models/player/hostage/hostage_03.mdl",
  25. description = [[Camera Men can broadcast live TV using his TV camera. Should accompany radio DJ for maximum coverage.]],
  26. weapons = {"wyozi_tvcamera"},
  27. command = "513742624",
  28. max = 1,
  29. salary = 200,
  30. admin = 0,
  31. vote = false,
  32. hasLicense = false,
  33. candemote = false,
  34. mayorCanSetSalary = true,
  35. type = media,
  36. unlockCost = 5000
  37. })
  38.  
  39. and I've added this job to this NPC
  40.  
  41. media = {
  42. name = "Media",
  43. model = {"models/Characters/hostage_04.mdl"},
  44. pos = {
  45. [1] = {
  46. pos = Vector(-5339.968750, -9286.769531, 136.031250),
  47. angle = Angle(0.955892, 179.064041, 0.000000),
  48. }
  49. },
  50. limit = 0.05
  51. },
  52. extras = {
  53. name = "Extras",
  54. model = {"models/Characters/hostage_04.mdl"},
  55. pos = {
  56. [1] = {
  57. pos = Vector(-6936.791016, -9264.370117, 4252.031250),
  58. angle = Angle(0.000, 90.000, 0.000),
  59. }
  60. },
  61. limit = 0.25
  62. },
  63.  
  64. The problem is, just like the mayor, they still appear everywhere.
  65.  
  66.  
  67. Thanks for helping out.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement