John_Scott Posted December 23, 2012 Share Posted December 23, 2012 Hy! Can you say me any fre car hide resource? Thanks! Link to comment
csiguusz Posted December 23, 2012 Share Posted December 23, 2012 Car hide? If you can't find a resource for it then make your own try setElementAlpha Link to comment
Baseplate Posted December 23, 2012 Share Posted December 23, 2012 Check Community for it. if you can't find it. script by your ownself Link to comment
John_Scott Posted December 23, 2012 Author Share Posted December 23, 2012 the getLocalPlayer only hide the character, don't the car. How i can hide the car? getLocalvehicle is not correct Link to comment
csiguusz Posted December 23, 2012 Share 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. Link to comment
John_Scott Posted December 23, 2012 Author Share Posted December 23, 2012 function invisible( thePlayer ) outputChatBox("Láthatatlan") setElementAlpha(getPedOccupiedVehicle( thePlayer ), 0) end addCommandHandler ( "invisible", invisible ) Not working Link to comment
Baseplate Posted December 23, 2012 Share Posted December 23, 2012 addCommandHandler("invisible", function (thePlayer) local vehicle = getPedOccupiedVehicle(thePlayer) if vehicle then setElementAlpha(vehicle, 0) outputChatBox("Láthatatlan") end end) Link to comment
John_Scott Posted December 23, 2012 Author Share 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 Link to comment
csiguusz Posted December 23, 2012 Share Posted December 23, 2012 If you are in a car and type command invisible, it should make your car invisible. Link to comment
Baseplate Posted December 23, 2012 Share Posted December 23, 2012 Yes...do it when you're inside a vehicle Link to comment
John_Scott Posted December 23, 2012 Author Share Posted December 23, 2012 Yes...do it when you're inside a vehicle Yes, i in a vehicle... type: /invisible and nothing Link to comment
csiguusz Posted December 23, 2012 Share Posted December 23, 2012 What did you do with the code? Did you put it in a working resource? Link to comment
arezu Posted December 23, 2012 Share 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. Link to comment
csiguusz Posted December 23, 2012 Share 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 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