papam77 Posted March 26, 2013 Share Posted March 26, 2013 Hello, i need any script with this functions for example callServerFunction - callClientFunction. Please download for any script with it Link to comment
papam77 Posted March 26, 2013 Author Share Posted March 26, 2013 I only need one script with this functions for example Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 I only need one script with this functions for example example callServerFunction("getServerMaps",getLocalPlayer()) end,500,1) function callServerFunction(funcname, ...) local arg = { ... } if (arg[1]) then for key, value in next, arg do if (type(value) == "number") then arg[key] = tostring(value) end end end triggerServerEvent("onClientCallsServerFunction", resourceRoot , funcname, unpack(arg)) end Link to comment
papam77 Posted March 26, 2013 Author Share Posted March 26, 2013 Ty. And how can make bind around NPC ? max. 5 meters around. You must be 5m maximum near to NPC and press "F" for call function. Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 Ty. And how can make bind around NPC ? max. 5 meters around.You must be 5m maximum near to NPC and press "F" for call function. you can use createMarker onClientMarkerHit onClientMarkerLeave Link to comment
Markeloff Posted March 26, 2013 Share Posted March 26, 2013 I didn't get the idea but try this createMarker ( x, y, z ) Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 I didn't get the idea but try this createMarker ( x, y, z ) our truth? Link to comment
Markeloff Posted March 26, 2013 Share Posted March 26, 2013 Any one know how to move a marker not an object ? Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 Any one know how to move a marker not an object ? wtf? he does not want to move anything Link to comment
Markeloff Posted March 26, 2013 Share Posted March 26, 2013 I just asked you Lucas I needed it is that that a problem ? Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 I just asked you Lucas I needed it is that that a problem ? I just can not understand your English. Link to comment
Castillo Posted March 26, 2013 Share Posted March 26, 2013 Any one know how to move a marker not an object ? You can use setElementPosition, or attach the marker to an invisible object and move the object then. Link to comment
ixjf Posted March 26, 2013 Share Posted March 26, 2013 I only need one script with this functions for example example callServerFunction("getServerMaps",getLocalPlayer()) end,500,1) function callServerFunction(funcname, ...) local arg = { ... } if (arg[1]) then for key, value in next, arg do if (type(value) == "number") then arg[key] = tostring(value) end end end triggerServerEvent("onClientCallsServerFunction", resourceRoot , funcname, unpack(arg)) end This is actually wrong because you are trying to call a function that hasn't been declared yet. Plus, the functions "callServerFunction" and "callClientFunction" cannot (but isn't hard to implement) return the value that is returned by the function called. The only thing in which these functions are good is that you don't need to add multiple events to do each thing. 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