xTravax Posted November 5, 2014 Share Posted November 5, 2014 hi there are functions in clientside(fr_client.lua) e.g server.setPedAnimation where is server defined?how does it even work? Link to comment
pa3ck Posted November 5, 2014 Share Posted November 5, 2014 fr_client.lua @ line 8: server = createServerCallInterface() util.lua @ line 1: function createServerCallInterface() return setmetatable( {}, { __index = function(t, k) t[k] = function(...) triggerServerEvent('onServerCall', g_Me, k, ...) end return t[k] end } ) end It`s advanced stuff, not easy to understand if you never used metatable before. Link to comment
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