Нужен скрипт для подмены joinAuthKey

Majunti

Известный
Автор темы
528
165
При подключении к серверу должен отправлятся joinAuthKey который я укажу
 
Решение
Код:
[13:22:49.551959] (error)    authkey.lua: ...6)\Rockstar Games\GTA San Andreas\moonloader\authkey.lua:1: attempt to index global 'lib' (a nil value)
stack traceback:
    ...6)\Rockstar Games\GTA San Andreas\moonloader\authkey.lua:1: in main chunk
[13:22:49.551959] (error)    authkey.lua: Script died due to an error. (0D562C6C)
Lua:
local ev = require("samp.events")



function ev.onSendClientJoin(version, mod, nickname, challengeResponse, joinAuthKey, clientVer, challengeResponse2)
     joinAuthKey = ""
     return {version, mod, nickname, challengeResponse, joinAuthKey, clientVer, challengeResponse2}
end
Попробуй вот так

Majunti

Известный
Автор темы
528
165
Lua:
local ev = require("lib.samp.events")



function ev.onSendClientJoin(version, mod, nickname, challengeResponse, joinAuthKey, clientVer, challengeResponse2)
     joinAuthKey = ""
     return {version, mod, nickname, challengeResponse, joinAuthKey, clientVer, challengeResponse2}
end
Код:
[13:22:49.551959] (error)    authkey.lua: ...6)\Rockstar Games\GTA San Andreas\moonloader\authkey.lua:1: attempt to index global 'lib' (a nil value)
stack traceback:
    ...6)\Rockstar Games\GTA San Andreas\moonloader\authkey.lua:1: in main chunk
[13:22:49.551959] (error)    authkey.lua: Script died due to an error. (0D562C6C)
 

NikitaSokol

Активный
206
63
Код:
[13:22:49.551959] (error)    authkey.lua: ...6)\Rockstar Games\GTA San Andreas\moonloader\authkey.lua:1: attempt to index global 'lib' (a nil value)
stack traceback:
    ...6)\Rockstar Games\GTA San Andreas\moonloader\authkey.lua:1: in main chunk
[13:22:49.551959] (error)    authkey.lua: Script died due to an error. (0D562C6C)
Lua:
local ev = require("samp.events")



function ev.onSendClientJoin(version, mod, nickname, challengeResponse, joinAuthKey, clientVer, challengeResponse2)
     joinAuthKey = ""
     return {version, mod, nickname, challengeResponse, joinAuthKey, clientVer, challengeResponse2}
end
Попробуй вот так
 
  • Нравится
Реакции: Majunti

Majunti

Известный
Автор темы
528
165
Lua:
local ev = require("samp.events")



function ev.onSendClientJoin(version, mod, nickname, challengeResponse, joinAuthKey, clientVer, challengeResponse2)
     joinAuthKey = ""
     return {version, mod, nickname, challengeResponse, joinAuthKey, clientVer, challengeResponse2}
end
Попробуй вот так
да и так пробовал