Help LUA/CLEO

TeRmminaTo[R]

Active member
Joined
Dec 6, 2016
Messages
54
Reaction score
1
Hello i was wondering if anyone could help me with making a cleo or lua doesn't really matter aslong as it works so basically what i wanted is this...

It should read the text from textdraw ID 2069 then if the text we just scanned says click on the "M4" it should click the M4 model(textdraw) then click confirm button(txd id 2067) now here's the tricky part there are many models and texts its not just M4, i have them all i just need the example of the cleo / lua


Now this is what i tried lol
C:
local sampev = require 'lib.samp.events'
local verify = 2067

function sampev.onShowTextDraw(Id, data)
 if data.modelId == 356 and data.text == "~y~ Click on M4 ~w~" then
  sampSendClickTextdraw(id)
  sleep(500)
  sampSendClickTextdraw(verify)
 end
end

if someone could help it would be great.
 
Top