murilo2929 Posted January 29, 2020 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.
Angelo Pereira Posted January 29, 2020 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
murilo2929 Posted January 29, 2020 Author 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.
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