papam77 Posted March 26, 2013 Posted March 26, 2013 Hello, i need any script with this functions for example callServerFunction - callClientFunction. Please download for any script with it
papam77 Posted March 26, 2013 Author Posted March 26, 2013 I only need one script with this functions for example
ZL|LuCaS Posted March 26, 2013 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
papam77 Posted March 26, 2013 Author 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.
ZL|LuCaS Posted March 26, 2013 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
Markeloff Posted March 26, 2013 Posted March 26, 2013 I didn't get the idea but try this createMarker ( x, y, z )
ZL|LuCaS Posted March 26, 2013 Posted March 26, 2013 I didn't get the idea but try this createMarker ( x, y, z ) our truth?
Markeloff Posted March 26, 2013 Posted March 26, 2013 Any one know how to move a marker not an object ?
ZL|LuCaS Posted March 26, 2013 Posted March 26, 2013 Any one know how to move a marker not an object ? wtf? he does not want to move anything
Markeloff Posted March 26, 2013 Posted March 26, 2013 I just asked you Lucas I needed it is that that a problem ?
ZL|LuCaS Posted March 26, 2013 Posted March 26, 2013 I just asked you Lucas I needed it is that that a problem ? I just can not understand your English.
Castillo Posted March 26, 2013 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.
ixjf Posted March 26, 2013 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.
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