murilo2929 Posted January 29, 2020 Share Posted January 29, 2020 Então como faço para ver se um jogador esta no carro? e caso ele esteja não funcionar a bind. Link to comment
Angelo Pereira Posted January 29, 2020 Share Posted January 29, 2020 (edited) getPedOccupiedVehicle ( ped thePed ) local veh = getPedOccupiedVehicle (thePed) --/> Verificar se o Player Esta em Veiculo. if veh then return end --/> Retorna. Exemplo : function teleporte ( source ) local veh = getPedOccupiedVehicle (source) if veh then ouputChatBox("Você So Pode usa Este Comando Fora do Veiculo", source,255,255,255,true) return end setElementPosition(source, 0,0,0) end addCommandHandler("tp", teleporte) Edited January 29, 2020 by Angelo Pereira Link to comment
murilo2929 Posted January 29, 2020 Author Share Posted January 29, 2020 31 minutes ago, Angelo Pereira said: getPedOccupiedVehicle ( ped thePed ) local veh = getPedOccupiedVehicle (thePed) --/> Verificar se o Player Esta em Veiculo. if veh then return end --/> Retorna. Exemplo : function teleporte ( source ) local veh = getPedOccupiedVehicle (source) if veh then ouputChatBox("Você So Pode usa Este Comando Fora do Veiculo", source,255,255,255,true) return end setElementPosition(source, 0,0,0) end addCommandHandler("tp", teleporte) Muito obrigado. 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