Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating main.lua #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 18 additions & 2 deletions client/main.lua
Expand Up @@ -11,6 +11,22 @@ local Keys = {
}

ESX = nil
local Blips = {
{ name="Hunting", id=141,x=-769.23773193359, y=5595.6215820313, z=33.48571395874},
{ name="Hunting Seller", id=141,x=-969.16375732422, y=-2107.9033203125, z=31.475671768188},
}

Citizen.CreateThread(function()
for _, item in pairs(Blips) do
item.blip = AddBlipForCoord(item.x, item.y, item.z)
SetBlipSprite(item.blip, item.id)
SetBlipColour(item.blip, 1)
SetBlipAsShortRange(item.blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(item.name)
EndTextCommandSetBlipName(item.blip)
end
end)

Citizen.CreateThread(function()
while ESX == nil do
Expand Down Expand Up @@ -68,7 +84,7 @@ function LoadMarkers()
end
end
end)

LoadModel('blazer')
LoadModel('a_c_deer')
LoadAnimDict('amb@medic@standing@kneel@base')
Expand Down Expand Up @@ -242,4 +258,4 @@ end
function DrawM(hint, type, x, y, z)
ESX.Game.Utils.DrawText3D({x = x, y = y, z = z + 1.0}, hint, 0.4)
DrawMarker(type, x, y, z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.5, 1.5, 1.5, 255, 255, 255, 100, false, true, 2, false, false, false, false)
end
end