Jump to content
  • 0

Opened buildings


AMARANT

Question

Posted

Hello everyone. Please tell me how can I do on my server opened buildings, shops, pay-n-sprays, barber, etc.? Like in original game all these buildings are opened and I can enter them with yellow marker.

6 answers to this question

Recommended Posts

  • 0
Posted

start interiors

The resource called interiors will let you enter many buildings.

To open garages you need something that will open them like:

for i=1, 49 do 
    setGarageOpen(i, true) 
end 

Put that code inside one of your resources .lua files and restart the resource for all garages to be open (but pay and spray won't work, you need a community resource that does that)

  • 0
Posted

Thanks, it's helped. And tell me please one more thing. How can I make icons on the map for those buildings I told you at first post?

  • 0
Posted
function stopSprayDamage ( attacker, weapon ) 
    if ( weapon == 41 ) then 
        cancelEvent() 
    end 
end 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) 

Add that to a client side script and restart the resource

  • 0
Posted

Bump!, that will not work because functions name is stopSprayDamage and in Event handler its name is stopMinigunDamage. change stopMinigunDamage to stopSprayDamage or stop SprayDamage to stopMinigunDamage.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...