Hi, I’m a little bit stuck here and i wanted to know if someone knows how i can resolve this problem, so i used this resource to force an automatic message (The person pulls his phone out) when the player uses his phone (by clicking on ~/²) AND by using the animation used when you pull out the phone. This works perfectly but when i try to put the phone away (by clicking on ~/²) , the same message from earlier appears
here is the script i’m using :
Citizen.CreateThread(function() while true do Citizen.Wait(0) local playerPed = PlayerPedId() if IsEntityPlayingAnim(playerPed, 'cellphone_text_out', 'idle', 3) ~= 1 and IsControlJustPressed(0,243) then TriggerServerEvent('3dme:shareDisplay3', text) end end end)
what i want to do is use a specific message when the person pulls her phone out and another message when she “ranges” it.
any ideas on how i can do that ?