with time there will be more animations added, enjoy!
u also need essentialmode for this, otherwise use this in the server.lua
AddEventHandler(“chatMessage”, function(source, name, message)
cm = stringsplit(message, " ")
if cm[1] == “/k” then
CancelEvent()
TriggerClientEvent(“KneelHU”, source)
end
end)
AddEventHandler(“chatMessage”, function(source, name, message)
cm = stringsplit(message, " ")
if cm[1] == “/k” then
CancelEvent()
TriggerClientEvent(“KneelHU”, source)
end
end)
ye its normal it should be in the resources folder or in a subfolder called [scripts] check ur essential is working, this is working for everyone else so it might be something ur side
use lambda menu, under acttions u have all the animations, im not gonna help u make different animations its open source, so feel free to modify. if u dont know how to code a little dont even ask me about stuff like this cause its just a waste of my ttime and yours
Yeah its weird because I tried that too. I’ve tried everything I can think of. I’ll try it on a new server tomorrow and see if it works. Maybe it’s conflicting.
could you tell me why this is happening when i execute the command? the animation works no problem just when its executed the commands this pops up in chat which is annoying.
Error running system event handling function for resource commands: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: server.lua:34: attempt to call a nil value (method ‘Split’)
stack traceback:
server.lua:34: in function ‘stringsplit’
server.lua:26: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:124: in function citizen:/scripting/lua/scheduler.lua:123
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:39: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:123: in function citizen:/scripting/lua/scheduler.lua:92