Jump to content

Skuleris

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Skuleris

  1. Skuleris

    Exports

    Maybe you can use getTeamFromName. setPlayerTeam(source,getTeamFromName("Medic"))
  2. denny199 added "end" after 14 line, to fix warning. Added debug strings, so i know the problem - siren toggling on, when you press h, not turning off. Gonna try to fix it. Fixed, denny199 big thanks for this, its working. Setted up timer and remove getVehicleSirensOn and its working. function VehicleEnter ( thePlayer, seat, jacked ) if ( seat == 0 ) and (getElementModel ( source ) == 490) then setVehicleSirensOn ( source, false ) bindKey ( thePlayer, "h", "down", disableSiren ) end end addEventHandler ( "onVehicleEnter", getRootElement(), VehicleEnter ) function exitVehicle ( thePlayer, seat, jacked ) if ( seat == 0 ) and (getElementModel ( source ) == 490) then setVehicleSirensOn ( source, false ) unbindKey ( thePlayer, "h", "down", disableSiren ) end end addEventHandler ( "onVehicleStartExit", getRootElement(), exitVehicle ) function disableSiren (presser) if not isPedInVehicle (presser) then unbindKey ( presser, "h", "down", disableSiren ) elseif isPedInVehicle (presser) then setTimer ( function() setVehicleSirensOn ( getPedOccupiedVehicle ( presser), false ) end, 250, 1 ) end end
  3. This not working, because before you remove you need to add that - addVehicleSirens And i tried almost everything >> addEventHandler("onVehicleEnter",root,function(player,seat) if(player)and(seat==0)then removeVehicleSirens(source) end end) local rancher = (getElementsByType("vehicle") and getElementModel(490)) for i,vehicle in ipairs(rancher) do removeVehicleSirens(rancher) end function removeSiren ( fbirancher ) if getElementsByType ( fbirancher ) == "vehicle" and getElementModel ( fbirancher ) == 490 then removeVehicleSirens ( fbirancher ) end end addEventHandler ( "onResourceStart", getRootElement(), removeSiren ) These three didn't work.
  4. Hi! Is there any way to remove siren from fbi rancher? I mean that siren, when fastly press H. I tried "removeVehicleSirens", but didn't work, because need to add sirens first.
×
×
  • Create New...