Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local test = false
- function wow(player)
- if isPedInVehicle(player) then
- if test == false then
- local veh = getPedOccupiedVehicle(player)
- setElementAlpha(veh, 0)
- test = true
- elseif test == true then
- local veh = getPedOccupiedVehicle(player)
- setElementAlpha(veh, 255)
- test = false
- else
- outputDebugString('Es ist ein Fehler aufgetreten')
- end
- end
- end
- addCommandHandler('unsichtbar' , wow)
- -- Test
- local gMe = getLocalPlayer()
- function trololo()
- for id, player in ipairs(getElementsByType("vehicle")) do
- if player ~= gMe then
- setElementAlpha(player, 0)
- else
- setElementAlpha(player, 255)
- end
- end
- end
- bindKey('F1', 'down', trololo)
Advertisement
Add Comment
Please, Sign In to add comment