Dzsozi (h03) Posted March 23, 2014 Share Posted March 23, 2014 Hello guys! So today I made a script which is about a marker and a garage. When you enter in the marker with a car it brings up color picker and you can select your car's color. But my problem is that I don't know how to make it appear only for the man, who is in the driver seat, because now it appears for everybody in the car. Can anybody help me please? I would be grateful. Thank you! Just a bit of the code, this part is when the color picker appears. If it's needed I'll post the full code. function openColorPicker(hitPlayer, matchingDimension, seat) if localPlayer == hitPlayer then editingVehicle = getPedOccupiedVehicle(hitPlayer) seat = 0 if (editingVehicle) and seat then colorPicker.openSelect(colors) showCursor(true) end end end --addCommandHandler("color", openColorPicker) addEventHandler("onClientMarkerHit", marker, openColorPicker) Link to comment
Castillo Posted March 23, 2014 Share Posted March 23, 2014 if ( editingVehicle ) and ( getVehicleOccupant ( editingVehicle, 0 ) == hitPlayer ) then Link to comment
Dzsozi (h03) Posted March 23, 2014 Author Share Posted March 23, 2014 if ( editingVehicle ) and ( getVehicleOccupant ( editingVehicle, 0 ) == hitPlayer ) then Oh, thank you very much!! 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