News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: how to complete a mission with lua?  (Read 1412 times)

0 Members and 1 Guest are viewing this topic.

Offline embas10

  • Jr. Member
  • **
  • Posts: 27
  • Gender: Male
    • View Profile
how to complete a mission with lua?
« on: September 27, 2013, 05:50:34 AM »
hey guys i want complete a mission with my lua. but at i playing the arcade machine, the mission does'nt avaibile. so what should i do if the simbol star mission appear in the map with playing arcade machine?

sorry bad english! :P

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: how to complete a mission with lua?
« Reply #1 on: September 27, 2013, 06:09:55 AM »
What do you mean?

If you mean getting "MissionSuccess" on the screen then the code is :

MissionSucceed()

it has no parameters.

If you mean make an X appear on the mini map then the code is :

BlipName = BlipAddXYZ(X coords, Y coords, Z coords, 29)

29 = yellow X on map

Z coords isn't used tho.

Offline embas10

  • Jr. Member
  • **
  • Posts: 27
  • Gender: Male
    • View Profile
Re: how to complete a mission with lua?
« Reply #2 on: September 28, 2013, 10:50:23 PM »
wow work work work ;D ;D ;D ;D