TorNix~|nR Posted August 12, 2017 Share 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? Link to comment
Administrators Lpsd Posted August 12, 2017 Administrators Share 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_ Link to comment
TorNix~|nR Posted August 12, 2017 Author Share Posted August 12, 2017 @LopSided_, I'm talking about the shooter system. Link to comment
Administrators Lpsd Posted August 12, 2017 Administrators Share 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? Link to comment
TorNix~|nR Posted August 12, 2017 Author Share Posted August 12, 2017 I'm waiting to make a shooter system, only the Infernus vehicle can use it Link to comment
Administrators Lpsd Posted August 12, 2017 Administrators Share 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 Link to comment
TorNix~|nR Posted August 13, 2017 Author Share 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) 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