Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
Hi, how to get some hidden information from server? Like you are fishing and pressing some keys then you get information in text about fish you caught. But i know that information about fish is already there on server when i wrote command to fish , but only shows in chat after i finish fishing...
local sampev = require "lib.samp.events"
require "lib.moonloader"
function main()
while not isSampAvailable() do wait(0) end wait(1)
while true do
wait(0)
end
end
function sampev.onServerMessage(color,text)
if text:find("(.)plotas(.)") then
local sync =...
I tried and got new error, btw what about this "require 'ffi' because i dont have anything like this in my libraries
[19:54:50.931763] (error) script.lua: ...\GTA-SanAndreas\moonloader\script.lua:65: attempt to index local 'sync_info' (a nil value)
stack traceback...
tried doesn't fix
ERROR MESSAGE:
[19:06:41.991754] (error) script.lua: ...\GTA-SanAndreas\moonloader\script.lua:28: attempt to call global 'samp_create_sync_data' (a nil value)
stack traceback:
...\GTA-SanAndreas\moonloader\script.lua:28: in function 'callback'
...N...
Why doesn't work?
if text:find("(.)parduok(.)jas") then
local sync = samp_create_sync_data('player')
sync.position = {-2966, 476, 5}
sync.send()
sampSendChat("/parduotizuvi")
end
Hello , is there a way to trick server like there is coordinate "-2966.76 , 476.04 , 5.41" where /sellfish command works , and let's say you are on other side of map and i wanna make that you can type /sellfish and it still works. Is it possible and how?
is there a way to make is3dtextOnScreen(i) because now it draws lines even when im not looking at that 3d text.
for i=0, 5000 do
if sampIs3dTextDefined(i) then
if enabled then
local text, color, vx, vy, vz, distance, ignoreWalls, pID, vID =...
btw it doesn't wait for 2sec it goes instantly to while why? and how to fix this or is there another function like sleep or something?
if b==1 and im2==0 then
lua_thread.create(function()
wait(2000) --it should wait 2sec and then go for while
end)...
tried with 0 and 1 didn't help still server closed to the connection. BTW when i do it manually and dialog closes automatically , but with auto response it still visible.
It sends response , but dialog still visible, if i close dialog i get "server closed to the connection". Why?
function sampev.onShowDialog(dialogId,style,title,button,button2,text)
if enabled then
if dialogId==5002 then
lua_thread.create(function()
wait(1000)...