Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
I'm trying to keep the script pressing W every time when it is activated but it's not working. Why?
local pressing = false
local function pressKeys(bool)
if not bool then
pressing = false
return
end
lua_thread.create(function()
pressing = true
while...
Hey guys, is it possible to create a communication between clients? For example, I'm using a script A and I'd like to communicate with other players that are using a script B. I feel that it's not possible, but just asking
Where's the events.lua in the version 0.27? I was trying to import using the path local events = require 'samp.events' but it's not working anymore. Looking in the files i didn't find the events.lua as well.
I got this version here https://www.blast.hk/threads/13305/page-2#post-386466
is there a documentation to know how using these events, like when them will be trigged, what i'll receive as parameters etc...
onSendPlayerSync and onPlayerSync
Hello, I have a code that if I point and press 1 on someone, I keep the player's id in a variable.
However, if I am on a motorcycle and I do this, the script did not understand that I am targeting someone and that is why the player id does not return to me.
How do I get around this?
How do I get two parameters in a command function?
sampRegisterChatCommand("sf", function(arg, arg2)
lua_thread.create(function()
sampAddChatMessage(arg.. arg2,-1)
end)
end)
This way it didn't work.
I wanted to type /sf 1 2 and receive parameter 1 and parameter 2.