ivan8065 Posted February 4, 2020 Share Posted February 4, 2020 Hello, I want to make work somehow that when I use command bumpers will disappear. I know I have to use setVehicleComponentVisible but I don´t know how to make it work with command. Could somebody help me please? Thank you. Link to comment
Moderators Patrick Posted February 4, 2020 Moderators Share Posted February 4, 2020 -- CLIENT SIDE addCommandHandler("hide", function() local vehicle = getPedOccupiedVehicle(localPlayer) if not vehicle then return outputChatBox("ERROR: You have to sit in a vehicle!") end setVehicleComponentVisible(vehicle, "bump_front_dummy", false) setVehicleComponentVisible(vehicle, "bump_rear_dummy", false) outputChatBox("SUCCESS: Bumpers are hided!") end) 1 Link to comment
ivan8065 Posted February 4, 2020 Author Share Posted February 4, 2020 Wow, it looks so easy I was trying to make working script about hour. I am ashamed, I really am. Thank you very much man. 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