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.
Hi! I messed with the script a bit and tried to display the 3d text like seen in the gif, but the rectangle is moving around with the player. Do you know what I can do, that the rectangle doesn’t move around like that?
The trigger needs to be on the server side. For example :
RegisterServerEvent('trunkOpened')
AddEventHandler('trunkOpened', function()
local Source = source
local text = "* the person opened the trunk of the car *"
TriggerClientEvent('3dme:shareDisplay', -1, text, Source)
end)