Jump to content

Ok again sky color :(


JoZeFSvK

Recommended Posts

addEvent("onMapStart",true) 
addEventHandler("setSkyColor",root, 
function () 
     setSkyGradient(0,0,0,0,0,0) 
end) 
  

this will client

addEvent("onMapStart",true) 
 triggerClientEvent(source,"setSkyColor",source) 
  

and this server ? ... i need function ye ?

Edited by Guest
Link to comment

client

addEvent("onMapStart",true) 
addEventHandler("setSkyColor",root, 
function () 
     setSkyGradient(0,0,0,0,0,0) 
end) 

server

addEvent("onMapStart",true) 
function () 
     setSkyGradient(0,0,0,0,0,0) 
end) 
 triggerClientEvent(source,"setSkyColor",source) 
  

from client i have delete setSkyGra.... ?

Link to comment

you forgot to close 'function' and add event, name function, and get resource :P

  
function mapStart (startedResource) 
if getResourceInfo ( startedResource, "type" ) == "map" then 
setSkyGradient(0,0,0,0,0,0) 
end 
end 
addEventHandler("onResourceStart",getRootElement(),mapStart) 
  

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