Closed Brunodare-coder closed 5 months ago
https://github.com/Blumlaut/EasyAdmin/blob/master/client/admin_client.lua#L48
this is probably getting triggered too early as the rdr3 test only happens once the resource has fully started
can you try adding
if CompendiumHorseObserved then -- https://www.youtube.com/watch?v=r7qovpFAGrQ
RedM = true
settings.button = "PhotoModePc"
end
above it? does the error disappear then?
Is it correct like that ?
if not RedM then RegisterKeyMapping('easyadmin', 'Open EasyAdmin', 'keyboard', "") end
if CompendiumHorseObserved then RedM = true settings.button = "PhotoModePc" end
I got this error now put it above like that:
ah right, settings are initialised later, that code should probably be moved elsewhere, I'll look at rewriting that bit once I get near an rdr3 install.
Please test this commit: https://github.com/Blumlaut/EasyAdmin/commit/7ce86e5ec9162bc6ede94aebc1205f132535efe0 @Brunodare-coder, it registers the keybind later, which should fix the issue.
reminder -- @Brunodare-coder please test the commit above or I will revert it, I don't have a machine capable of running rdr3 currently.
closing this as assumed fixed, author abandoned the issue.
WARNING: IF YOU DO NOT FILL OUT OR REMOVE THE TEMPLATE YOUR ISSUE WILL GET LOCKED!
Describe the issue
I have done all correctly and the error code appeared as lua49: attempt to call a nil value (global registerkeymapping)
Attempted Solutions
the key bind is not working on REDM, I have set the key on the server.ctg and it hasn't worked
Screenshots/Logs
If applicable, attach screenshots or log files here to help explain your problem. setr ea_defaultKey "PhotoModePc"
Server Infos (please complete the following information):
Live Console FIVE: RedM (Linux) #628142
Additional context
Add any other context about the problem here.