verona Posted August 28, 2012 Posted August 28, 2012 Hi. I try use TriggerServerEvent. Client: function set_skin_id () triggerServerEvent ( "onSetSkin", getLocalPlayer(), 20 ) outputChatBox ( "test1" ) end Server: function SetSkinHandler ( skinid ) outputChatBox ( "Test: " .. skinid, source ) end addEvent( "onSetSkin", true ) addEventHandler( "onSetSkin", getRootElement(), SetSkinHandler ) When i start function set_skin_id, then chatbox print "test1", but not "Test: 20" (server function). I don't know why. No errors/warings in debug console. So what is bad? This is really simple script, but i try fix this in 3 hours! Regards.
TAPL Posted August 28, 2012 Posted August 28, 2012 Nothing is wrong. I tested it and it's work. * Connected! [MTA:SA Server 1.3 [Windows]] Server FPS limit: 50 Server AC info: [Allowed client files: None] [Disabled AC: None] [Enabled SD: 12] Welcome to Freeroam Press F1 to show/hide controls test1 Test: 20 Maybe you did something wrong in the meta.xml
verona Posted August 28, 2012 Author Posted August 28, 2012 Yes, its work Sorry for stupid topic, this was a FTP problem....
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now