Jump to content

Recommended Posts

Pior que não funcionou não sei se estou fazendo errado

Vou deixar os scripts que estou fazendo

server.lua
 

toggleControl( "radar", false )

client.lua
 

setTimer( toggleControl, 1200000, 0, "radar", false ) -- 20 minutos

meta.xml

<meta>
<script src="server.lua" type="server"/>
<script src="client.lua" type="server"/>
<info author="C0DE" version="1.0.1" type="exitf11" name="exitf11" />

</meta>

Algum erro nestes scripts ?

Link to comment

É só 1 código, e no meta.xml você deixou ambos no lado server.

Tente isto:

Client:

addEventHandler( "onClientResourceStart",resourceRoot,
	function()
		toggleControl("radar", false)
		setTimer( toggleControl, 1200000, 0, "radar", false )
	end
)

 

Edited by DNL291
Link to comment

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...