Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
local sampev = require 'lib.samp.events'
require 'lib.moonloader'
local act = false
function main()
while not isSampAvailable() do
wait(0)
end
sampRegisterChatCommand('vaz', function()
act = not act
sampAddChatMessage(act and '{e53939}RLS.LT AUTO VAZIUOJU...
script_name("drawClickableText")
script_description("example of using drawClickableText function with mechanic feature")
script_version_number(1)
script_version("v.001")
script_authors("hnnssy")
local ffi = require "ffi"
local getBonePosition = ffi.cast("int (__thiscall*)(void*, float*, int...
How can I add to the list so that I can give the specified amount to a player, from 50 to 100 bullets? For example, if I have a Desert Eagle in my hand, I'll give the Desert Eagle, and if I have a rifle, I'll give a rifle.
But how can I implement a feature where pressing a specific mouse button...
How i can fix that?
[14:03:02.343318] (error) krd.lua: C:\Users\User\Desktop\GTA San Andreas\moonloader\krd.lua:8: attempt to call global 'sampRegisterChatCommand' (a nil value)
stack traceback:
C:\Users\User\Desktop\GTA San Andreas\moonloader\krd.lua: in function...
I fixed that before now i'm getting another error
attempt to call global 'sampSendChatMessage' (a nil value)
sampSendChat doesn't work same error
local key = require 'vkeys'
function main()
lua_thread.create(function()
while true do
wait(100)
if...
local key = require 'vkeys'
function main()
lua_thread.create(function()
while true do
wait(100)
if isControlPressed(key.VK_Z) then
sampSendChat('/mechanikas')
repeat
wait(0)...
pcall(require, 'sflua')
function main()
repeat
wait(3000)
until isSampLoaded()
while true do
wait(3000)
local vehicle = getCarCharIsUsing(PLAYER_PED)
if vehicle and doesVehicleExist(vehicle) then
local health = getCarHealth(vehicle)...
how could I make a script so that the police officer would send me a fine and I would automatically accept it?
pcall(require, 'sflua')
function isFinePaymentRequestDisplayed()
for i = 0, sampGetChatStringLength() - 1 do
local chatText = sampGetChatString(i)
if...