Bind Keys Fivem Code Example


Example 1: FiveM pc key code


// its C# BTW :)

// checks if INPUT_CONTEXT has just been released
// assumes `using static CitizenFX.Core.API;`
if(IsControlJustReleased(1, 51))
{
// run code here
}

Example 2: FiveM pc key code


-- its Lua BTW :)

-- checks if INPUT_CONTEXT has just been released
if IsControlJustReleased(1--[[input group]], 51--[[control index]]) then
-- run code here
end

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable