John_Scott Posted December 23, 2012 Posted December 23, 2012 Hy! Can you say me any fre car hide resource? Thanks!
csiguusz Posted December 23, 2012 Posted December 23, 2012 Car hide? If you can't find a resource for it then make your own try setElementAlpha
Baseplate Posted December 23, 2012 Posted December 23, 2012 Check Community for it. if you can't find it. script by your ownself
John_Scott Posted December 23, 2012 Author Posted December 23, 2012 the getLocalPlayer only hide the character, don't the car. How i can hide the car? getLocalvehicle is not correct
csiguusz Posted December 23, 2012 Posted December 23, 2012 the getLocalPlayer only hide the character, don't the car. How i can hide the car? getLocalvehicle is not correct Use getPedOccupiedVehicle to get a ped's (for example the local player's) vehicle.
John_Scott Posted December 23, 2012 Author Posted December 23, 2012 function invisible( thePlayer ) outputChatBox("Láthatatlan") setElementAlpha(getPedOccupiedVehicle( thePlayer ), 0) end addCommandHandler ( "invisible", invisible ) Not working
Baseplate Posted December 23, 2012 Posted December 23, 2012 addCommandHandler("invisible", function (thePlayer) local vehicle = getPedOccupiedVehicle(thePlayer) if vehicle then setElementAlpha(vehicle, 0) outputChatBox("Láthatatlan") end end)
John_Scott Posted December 23, 2012 Author Posted December 23, 2012 addCommandHandler("invisible", function (thePlayer) local vehicle = getPedOccupiedVehicle(thePlayer) if vehicle then setElementAlpha(vehicle, 0) outputChatBox("Láthatatlan") end end) It is not working
csiguusz Posted December 23, 2012 Posted December 23, 2012 If you are in a car and type command invisible, it should make your car invisible.
John_Scott Posted December 23, 2012 Author Posted December 23, 2012 Yes...do it when you're inside a vehicle Yes, i in a vehicle... type: /invisible and nothing
csiguusz Posted December 23, 2012 Posted December 23, 2012 What did you do with the code? Did you put it in a working resource?
arezu Posted December 23, 2012 Posted December 23, 2012 use setElementDimension, because setElementAlpha still draws vehicle on screen but draws it "invicible" = bad fps. SetElementDimension doesn't draw vehicle at all (and some other stuff) - as if the vehicle is not there at all = good fps.
csiguusz Posted December 23, 2012 Posted December 23, 2012 use setElementDimension setElementDimension won't work here. You can make a car "invisible" by setting its dimension, but you won't be able to drive it. setElementAlpha still draws vehicle on screen but draws it "invicible" = bad fps. it still draws the vehicle, so the fps will be the same not worse
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