Jump to content

Rules


yoya99

Recommended Posts

It's not actually about being perfect, i noticed from your posts, you're making horrible mistakes, please learn more scripting, i believe within a month or two you will be able to help people.

Ok , Thank's for the advise

Link to comment

Theres no event for that clientsided so use triggerClientEvent...

Something like this:

--Server 
addEventHandler("onPlayerLogin", root, 
    function () 
        triggerClientEvent(source, "onClientPlayerLogin", root) 
    end 
) 
  
--Client 
addEvent("onClientPlayerLogin", true) 
addEventHandler("onClientPlayerLogin", root, 
    function () 
        removeEventHandler("onClientRender", root, showRules) 
    end 
) 

Should work

Link to comment
--Server 
addEventHandler("onPlayerLogin", root, 
    function () 
        triggerClientEvent(source, "onClientPlayerLogin", root) 
    end 
) 
  
--Client 
addEvent("onClientPlayerLogin", true) 
addEventHandler("onClientPlayerLogin", root, 
    function () 
        removeEventHandler("onClientRender", root, showRules) 
        shown = false 
    end 
) 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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