Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: embas10 on May 27, 2014, 06:18:17 AM
-
is there Anyone now? how to add a color corona like in mission is yellow color, and if challenge is red, and if activities is blue, and etc
and how to add a mission succes and mission failed text in lua.? :)
-
Simple.
If the condition you wanted to make you success the mission is true then write this command after it :
MissionSucceed() (could be MissionSuccess() too, since I didn't check, but its one of those)
same goes for the MissionFail() just with the condition you have set to fail will be true.
About the color thing, it requires a special file for it, but there is a way around it using PedInRectangle() + BlipAddXYZ() or BlipAdd()
-
can you make example?? i still don't understand :hmm:
are adding the corona it's like this??
PedInRectangle() + BlipAddXYZ(X ,Y ,Z ) or
PedInRectangle() + BlipAdd(X , Y ,Z )
-
Hey Coold0c i had try it but nothing working, are heres below will working?
PedInRectangle(Blue) + BlipAddXYZ( 270, -114, 6 )
The blue mean are blue corona. are it's will work like this??
-
No....
Its not like this...
Like this :
Blips = function()
NAME = BlipAddXYZ(ID,X,Y,Z)
end
Updater = function()
PlayerGetPosXYZ()
end
Condition = function()
if PedInRectangle(gPlayer,X1,Y1,X2,Y2) then
CODE HERE
elseif PedInRectangle(gPlayer,X1,Y1,X2,Y2) and IsButtonBeingPressed(ID,ID) then
CODE HERE
end
end
main = function()
Blips()
repeat
Updater()
Condition()
Wait(0)
until not Alive
end
end
Note : X1,Y1,X2,Y2 in the PedInRectangle() are the coords you want the player to be in to active the code.
It creates a round shape, which means if the player is between X1,Y1,X2, and Y2 the code will be activated.
Example :
if PedInRectangle(gPlayer,5,2,1,3) then
If I will go ingame and be between the coords 5, 2, 1, and 3, the code will run.
-
uhhhhh.
Im saying thanks For him..
THANK YA C00L I LOVE YA!! :)
-
uhhhhh.
Im saying thanks For him..
THANK YA C00L I LOVE YA!! :)
no problem man.
-
Thx dude . Anyway you late to post. But thankyou verymuch :D
-
Was a little busy lately.
Good luck.