Shopping Cart
LIBInput Releases Cfxre Community

[LIB]Input – Releases – Cfx.re Community


Input utilities for FXServer

[EVENTS]

AddEventHandler('RequestInput', function(name,cb,x,y)

[HOW IT WORKS]

TriggerEvent('RequestInput',WhoNameNeedThisInput,function(action,text,who)
    action >> "update" || "enter"
    text >> "a" "b" "c" "d" || "abcd"
    who >> nil || "somefunc"
end,x,y)

It creates an IME input and callbacks text.

[EXAMPLE]

--[[
Citizen.CreateThread(function()
    SetNuiFocus(false, false)
    Wait(555)
    TriggerEvent('RequestInput','game_print',function(action,text,who)
        if action then 
                if action == 'firstrun' then 

                elseif action == 'update' then 
                    print(who..':update:'..text)
                elseif action == 'enter' then 
                    print(who..':enter:'..text)
                end 
        end 
    end,100,100)
    TriggerEvent('RequestInput','game_print2',function(action,text,who)
        if action then 
                if action == 'firstrun' then 

                elseif action == 'update' then 
                    print(who..':update:'..text)
                elseif action == 'enter' then 
                    print(who..':enter:'..text)
                end 
        end 
    end,100,100)
end)
]]--

Github:Github

[FiveM Script][LIB]Input with GTA5 base chat system.

[FiveM Script][LIB]Input with GTA5 base chat system.



Original source: https://forum.cfx.re/t/lib-input/2109679

Leave a Reply
FiveM ESX Scripts

The best scripts and maps

Best support

Problems? We are there to help!

Wide range of products

We have a wide range of products

100% Secure Checkout

Easy and encrypted