Skip to content

Commit

Permalink
🎨 Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Feb 1, 2024
1 parent 675e6c5 commit 8da6413
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
41 changes: 20 additions & 21 deletions server-data/resources/[maps]/hdigitalden/client.lua
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
CreateThread(function()
while (true) do
ClearAreaOfPeds(387.1764, -828.0369, 29.3054, 46.9588, 5)
Wait(0)
end
while true do
ClearAreaOfPeds(387.1764, -828.0369, 29.3054, 46.9588, 5)
Wait(0)
end
end)

CreateThread(function() -- Examples
local ped_info
local ped_hash = 0x5B3BD90D -- Ped Hash
local ped_coords = { x = 383.762634, y = -826.681335, z = 28.300000, h = 260.0 } -- Ped Coords
local ped_info
local ped_hash = 0x5B3BD90D -- Ped Hash
local ped_coords = { x = 383.762634, y = -826.681335, z = 28.300000, h = 260.0 } -- Ped Coords

RequestModel(ped_hash)
while not HasModelLoaded(ped_hash) do
Wait(1)
end
RequestModel(ped_hash)
while not HasModelLoaded(ped_hash) do
Wait(1)
end

ped_info = CreatePed(1, ped_hash, ped_coords.x, ped_coords.y, ped_coords.z, ped_coords.h, false, true)
SetBlockingOfNonTemporaryEvents(ped_info, true) -- Don't Change
SetPedDiesWhenInjured(ped_info, false) -- Can Die?
SetPedCanPlayAmbientAnims(ped_info, true) -- Don't Change
SetPedCanRagdollFromPlayerImpact(ped_info, false) -- Ped Fall Down
SetEntityInvincible(ped_info, true) -- Ped Invincible
FreezeEntityPosition(ped_info, true) -- Don't Change
TaskStartScenarioInPlace(ped_info, "WORLD_HUMAN_COP_IDLES", 0, true); -- Ped Anim

end)
ped_info = CreatePed(1, ped_hash, ped_coords.x, ped_coords.y, ped_coords.z, ped_coords.h, false, true)
SetBlockingOfNonTemporaryEvents(ped_info, true) -- Don't Change
SetPedDiesWhenInjured(ped_info, false) -- Can Die?
SetPedCanPlayAmbientAnims(ped_info, true) -- Don't Change
SetPedCanRagdollFromPlayerImpact(ped_info, false) -- Ped Fall Down
SetEntityInvincible(ped_info, true) -- Ped Invincible
FreezeEntityPosition(ped_info, true) -- Don't Change
TaskStartScenarioInPlace(ped_info, "WORLD_HUMAN_COP_IDLES", 0, true) -- Ped Anim
end)
12 changes: 7 additions & 5 deletions server-data/resources/[maps]/hdigitalden/interiorproxies.meta
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<SInteriorOrderData>
<startFrom value="482" />
<proxies>
<Item>digitalgen</Item>
</proxies>
</SInteriorOrderData>
<startFrom value="482" />
<proxies>
<Item>
digitalgen
</Item>
</proxies>
</SInteriorOrderData>

0 comments on commit 8da6413

Please sign in to comment.