Like someone said.
Citizen.CreateThread(function()
while true do
if not chatInputActive then
Citizen.Wait(0)
if IsControlPressed(0, isRDR and INPUT_MP_TEXT_CHAT_ALL or 245) --[[ INPUT_MP_TEXT_CHAT_ALL ]] then
chatInputActive = true
chatInputActivating = true
x2, y2, z2 = table.unpack(GetEntityCoords(GetPlayerPed(-1)))
DrawText3D(x2, y2, z2+1, “~w~Typing…~n~”)
SendNUIMessage({
type = ‘ON_OPEN’
})
end
else
Citizen.Wait(500)
end
end
end)
Through this function, I try to print the phrase “typing…” overhead.
I’d like to print the phrase on the head of the person typing the text, is there a way?
Is there also a function that detects chats?
pls