terreus Posted July 12, 2015 Posted July 12, 2015 وين خطأ شباب ميخفي سيارة :@ addEvent("onAlpha",true) addEventHandler("onAlpha", root, function() local vehicle = getPedOccupiedVehicle ( source ) if ( vehicle ) and getVehicleOccupant(vehicle) == source then if ( hide ~= true ) then if ( hideTimer ~= true ) then setElementAlpha ( vehicle, 0 ) setElementAlpha ( source, 0 ) hide = true hideTimer = true setTimer( function() hideTimer = false end,3000,1) outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) else outputChatBox ( "Wait 3 Seconds To Buy Hide !", source, 94,237,0, true ) end else if ( hideTimer ~= true ) then setElementAlpha ( vehicle, 255 ) setElementAlpha ( source, 255 ) hide = false hideTimer = true setTimer( function() hideTimer = false end,3000,1) outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) else outputChatBox ( "Wait 3 Seconds To Buy un Hide !", source, 94,237,0, true ) end end end end)
3NAD Posted July 12, 2015 Posted July 12, 2015 hideTimer = { }; addEvent("onAlpha",true) addEventHandler("onAlpha", root, function() local vehicle = getPedOccupiedVehicle ( source ) if vehicle then if getVehicleController ( vehicle ) == source then if getElementAlpha ( vehicle ) >= 200 then if not hideTimer[source] then setElementAlpha ( vehicle, 0 ) setElementAlpha ( source, 0 ) hideTimer[source] = true setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) else outputChatBox ( "Wait 3 Seconds To Buy Hide !", source, 94,237,0, true ) end else if not hideTimer[source] then setElementAlpha ( vehicle, 255 ) setElementAlpha ( source, 255 ) hideTimer[source] = true setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) else outputChatBox ( "Wait 3 Seconds To Buy un Hide !", source, 94,237,0, true ) end end end end end ) addEventHandler ( "onPlayerQuit", root, function ( ) if hideTimer[source] then hideTimer[source] = nil end end )
terreus Posted July 12, 2015 Author Posted July 12, 2015 hideTimer = { }; addEvent("onAlpha",true) addEventHandler("onAlpha", root, function() local vehicle = getPedOccupiedVehicle ( source ) if vehicle then if getVehicleController ( vehicle ) == source then if getElementAlpha ( vehicle ) >= 200 then if not hideTimer[source] then setElementAlpha ( vehicle, 0 ) setElementAlpha ( source, 0 ) hideTimer[source] = true setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) else outputChatBox ( "Wait 3 Seconds To Buy Hide !", source, 94,237,0, true ) end else if not hideTimer[source] then setElementAlpha ( vehicle, 255 ) setElementAlpha ( source, 255 ) hideTimer[source] = true setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) else outputChatBox ( "Wait 3 Seconds To Buy un Hide !", source, 94,237,0, true ) end end end end end ) addEventHandler ( "onPlayerQuit", root, function ( ) if hideTimer[source] then hideTimer[source] = nil end end ) يوم اضغط زر ميخفي سيارة
justboy Posted July 12, 2015 Posted July 12, 2015 التريقر غلط استخد للكلينت triggerServerEvent("onAlpha",localPlayer)
Simple. Posted July 12, 2015 Posted July 12, 2015 التريقر غلط استخد للكلينت triggerServerEvent("onAlpha",localPlayer) انت شفت التريقر عشات تقول التريقر خطاء o_0
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