![]() ![]() I'm trying to get the useJob function to a "givejob" thingy, but I have no idea what so ever on how to do it.Ĭlient: wEmployment, jobList, bAcceptJob, bCancel = nil OutputChatBox("You are not at the right place!", 255, 0, 0)īut I think I've put water over my head, the useJob function was merely a test on how to add a command within a Marker. OutputChatBox("You have been given 50$ due to testing purposes.", 0, 255, 0) If exports.global:hasMoney(localPlayer, 50) thenĮxports.global:giveMoney(localPlayer, 50) ![]() ![]() If isElementWithinMarker(localPlayer, jobmarker) then RemoveEventHandler("onClientRender",root,renderRectangle)ĪddEventHandler( "onClientMarkerLeave", jobmarker, jobmarkerLeave ) OutputChatBox("This is a second test message", 255, 153, 0)ĪddEventHandler( "onClientMarkerHit", jobmarker, jobmarkerHit ) OutputChatBox("This is a test message", 255, 153, 0) OutputChatBox("You are not at the right place!", thePlayer, 255, 0, 0) OutputChatBox("You have been given 50$ due to testing purposes.", thePlayer, 0, 255, 0) ![]() If exports.global:hasMoney(thePlayer, 50) then If isElementWithinMarker(thePlayer, jobmarker) then OutputChatBox("This is a second test message", thePlayer, 255, 153, 0)ĪddEventHandler( "onClientMarkerHit", jobmarker, jobmarkerFunction )įunction useJob(thePlayer, matchingDimension) OutputChatBox("This is a test message", thePlayer, 255, 153, 0) Use: triggerClientEvent to add the event handler to render it. DX drawing functions are client side only, and they also require 'onClientRender' event to render them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |