LUA Script

TheyCallMe

Active Member
Joined
Jan 18, 2018
Messages
43
Likes
0
Points
6
5
#1
Hello There. All I want is a LUA Script that does the following:
When I Recieve a message from server saying "You have 5 minutes to sign the check before it becomes invalid." the LUA Script sends the command "/capture"

Please HELP ME PLEASESESESES. THANKS IN ADVANCE
@springfield
@Parazitas
@monday
@0x32789
 

DavidRO99

Well-Known Member
Joined
Nov 5, 2017
Messages
57
Likes
1
Points
13
#2
https://github.com/THE-FYP/SAMP.Lua/blob/master/samp/events.lua#L154, hook that, and just sampSendChat("/capture")
 
Joined
Mar 1, 2018
Messages
8
Likes
0
Points
1
1
#3
DavidRO99 said:
https://github.com/THE-FYP/SAMP.Lua/blob/master/samp/events.lua#L154, hook that, and just sampSendChat("/capture")
damn lua is simple compared to cleo
 
OP
OP
T

TheyCallMe

Active Member
Joined
Jan 18, 2018
Messages
43
Likes
0
Points
6
5
#4
DavidRO99 said:
https://github.com/THE-FYP/SAMP.Lua/blob/master/samp/events.lua#L154, hook that, and just sampSendChat("/capture")
Alrigh't, Thanks for replying mate. I'll check that and I'll script something and see.

cognac said:
damn lua is simple compared to cleo
Yup! That's why everyone is running towards LUA instead of CLEO lol.

 

DavidRO99

Well-Known Member
Joined
Nov 5, 2017
Messages
57
Likes
1
Points
13
#5
Nah, you see the RPC has 2 vars, playerId and text, you just check the text variabile against your wanted text, in your case you would do something like if text == "You have 5 minutes to sign the check before it becomes invalid." then sampSendChat("/capture") end
 
OP
OP
T

TheyCallMe

Active Member
Joined
Jan 18, 2018
Messages
43
Likes
0
Points
6
5
#6
DavidRO99 said:
Nah, you see the RPC has 2 vars, playerId and text, you just check the text variabile against your wanted text, in your case you would do something like if text == "You have 5 minutes to sign the check before it becomes invalid." then sampSendChat("/capture") end
What about the player ID var. Should I leave it empty or something like that?

Edit: I made a script and it didn't work for me. I'll PM you what I've done.
 
Top