They are 3 keys on server side
But anyway, you can change by finding using these code: https://wiki.fivem.net/wiki/Controls
Find the one who correspond to Z for you, and copy it into your script
local playerPed = GetPlayerPed(-1)
local isSitting â I AM A BOOLEAN
if playerPed ~= -1 then
isSitting = IsPedSittingInAnyVehicle(playerPed)
end
Then, if you find out that isSitting is true, you dont play the emote.
All the code here is untested, and i wont test it. You can get help on Discord if it dont work
â Check if player is in a vehicle
function IsInVehicle()
local ply = GetPlayerPed(-1)
if IsPedSittingInAnyVehicle(ply) then
return false
else
return true
end
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if (IsInVehicle()) then
if IsControlJustPressed(1, 178) then â INPUT_CELLPHONE_DOWN
InitMenu()
Menu.hidden = not Menu.hidden
elseif IsControlJustPressed(1, 32) then â INPUT_MOVE_UP_ONLY
ClearPedTasks(ped);
playing_emote = false
end
end
Menu.renderGUI()
end
end)
Iâm not working anymore on this script.
So, maybe one day, maybe never.
This script just give you bases to create a better one on your own, like boubi is actually doing.
downloaded this and installed it but removed it due to the issue of being able to use them in vehicles, i did try what Boubi wrote but i messed it up more as my character fell through the floor and only way to fix it was by restarting the server. how would i add Boubiâs code and making it work? thanks in advance for any help.