TorNix~|nR Posted August 12, 2017 Posted August 12, 2017 Hello guys, I need help I want to make a shooter system only for vehicles for example only for Infernus car. help please? ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003
MTA Team Lpsd Posted August 12, 2017 MTA Team Posted August 12, 2017 (edited) getPedOccupiedVehicle getElementModel if getElementModel(vehicle) == vehicleID then -- if player has vehicleID else -- if player does not have vehicleID end https://wiki.multitheftauto.com/wiki/Vehicle_IDs That should help Edited August 12, 2017 by LopSided_
TorNix~|nR Posted August 12, 2017 Author Posted August 12, 2017 @LopSided_, I'm talking about the shooter system. ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003
MTA Team Lpsd Posted August 12, 2017 MTA Team Posted August 12, 2017 Without any examples of your code it's pretty hard to help you. Are you using a shooter system already, or are you wanting to make one?
TorNix~|nR Posted August 12, 2017 Author Posted August 12, 2017 I'm waiting to make a shooter system, only the Infernus vehicle can use it ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003
MTA Team Lpsd Posted August 12, 2017 MTA Team Posted August 12, 2017 The Wiki provides a perfect example https://wiki.multitheftauto.com/wiki/CreateProjectile Use that in combination with what I told you - should be easy to make
TorNix~|nR Posted August 13, 2017 Author Posted August 13, 2017 @LopSided_, I made this, is this working? function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) -- Only create projectile if we are inside a vehicle if getElementModel(vehicle) == 411 then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) end end bindKey("vehicle_fire", "down", shootProjectile) ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003
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