Jump to content

XeroXipher

Members
  • Posts

    5
  • Joined

  • Last visited

Details

  • Gang
    Tribe 33
  • Location
    Las Santos
  • Occupation
    Drug Dealer
  • Interests
    Smoking Weed

XeroXipher's Achievements

Vic

Vic (3/54)

1

Reputation

  1. Honestly, I am still learning and up until now I have only worked with server sided scripts but I'll try it out as a client script. Thanks for the advice.
  2. Hello MTA... Sorry for asking rookie questions so frequently. So, I am trying to make NPC's on the map walk around. I know I will have to give them a path to walk (Which I don't know how to do, but I'll get there). Right now I am finding it hard to get my NPC to even move. This is the very basic coding I have so far. Pedestrians.lua function pedLoad() local thePed = createPed ( 106, 2492, -1673, 13.25, 200) setPedAnimation(thePed, "ped", "walk_gang1", -1, true, true, false, true) outputChatBox("This command did something", player, 100, 255, 100) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedLoad ) Now this works properly: local thePed = createPed ( 106, 2492, -1673, 13.25, 200) It creates my NPC and rotates him 200 degrees... But the rest of the coding doesn't do anything. I have tried setControlState: function pedLoad() local thePed = createPed ( 106, 2492, -1673, 13.25, 200) setControlState(thePed, "walk", true) setControlState(thePed, "forwards", true) outputChatBox("This command did something", player, 100, 255, 100) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedLoad ) And nothing happened... I know with setControlState I also have to change his camera to move in different directions but I can't get him to move at all... So, if someone could help me I would appreciate it. Thank You.
  3. Hello MTA... I'm a lurker and I am pretty sure this is my first post on this server : / So, I am making an RP MTA SA Server, and I am only doing this as a hobby. I know you can add Green Housing Icons and Blue Housing Icons to the Map in Map Editor, and I know you can use createObject(id, x, y, z) in the lua coding (I plan on using lua coding for this)... But how do I populate the entire map with Green/Blue Housing Icons? To Buy or Rent Property? I'm sure there are many people that have done this manually, but their must be a resource that has all the housing locations open source? I tried to download open source MTA Servers to get the Map but I don't know how to go about loading the map. So, my question is, is their an Easy way to script all the Houses/Properties in the Game without going from 1 house to the next and collecting coords? This is probably a really dumb question, I just had to ask.
×
×
  • Create New...