Bishop_G Posted September 26, 2023 Share Posted September 26, 2023 I'm working on creating a mission. In the mission, I will take a photo of a dead ped. But I don't know which event to use for the camera. onPlayerWeaponFire does not work for the camera. Does anyone know which event to use? Link to comment
_SAXI_ Posted September 26, 2023 Share Posted September 26, 2023 You could try something like this: local elementFocus=createPed(...) function setMissionHandler(player) bindKey(player,"mouse1","down",function(src) if(getPedTarget(src)==elementFocus)then outputChatBox("You've taken a photo",src,255,255,0) end end,player) end 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now