vasuphood.blogg.se

Mtasa on marker hit size
Mtasa on marker hit size







mtasa on marker hit size

Local job = getElementData(getLocalPlayer(), "job") Local row, col = guiGridListGetSelectedItem(jobList) GuiGridListSetItemText(jobList, row, column, "Locksmith", false, false)īAcceptJob = guiCreateButton(0.05, 0.85, 0.45, 0.1, "Accept Job", true, wEmployment)īCancel = guiCreateButton(0.5, 0.85, 0.45, 0.1, "Cancel", true, wEmployment)ĪddEventHandler("onClientGUIClick", bAcceptJob, acceptJob)ĪddEventHandler("onClientGUIDoubleClick", jobList, acceptJob)ĪddEventHandler("onClientGUIClick", bCancel, cancelJob)ĪddEventHandler("onEmployment", getRootElement(), showEmploymentWindow) GuiGridListSetItemText(jobList, row, column, "Mechanic", false, false) GuiGridListSetItemText(jobList, rowmaintenance, column, "City Maintenance", false, false) Local rowmaintenance = guiGridListAddRow(jobList) Local ftype = getElementData(team, "type") Local team = getPlayerTeam(getLocalPlayer()) GuiGridListSetItemText(jobList, row, column, "Bus Driver", false, false) GuiGridListSetItemText(jobList, row, column, "Taxi Driver", false, false) GuiGridListSetItemText(jobList, row, column, "Delivery Driver", false, false) Local column = guiGridListAddColumn(jobList, "Job Title", 0.9) WEmployment = guiCreateWindow(x, y, width, height, "Job Pinboard", false) Local scrWidth, scrHeight = guiGetScreenSize() TriggerServerEvent("onEmploymentServer", getLocalPlayer()) TriggerEvent("tooltips:showHelp",getLocalPlayer(),7) If(getResourceFromName("tooltips-system"))then SetPedAnimation ( jessie, "INT_OFFICE", "OFF_Sit_Idle_Loop", -1, true, false, false ) SetElementData( jessie, "name", "Jessie Smith" )

#Mtasa on marker hit size how to#

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.









Mtasa on marker hit size