Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Flexiboi authored Nov 15, 2023
1 parent c8e847c commit b4d73e9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,17 @@ exports('CreateHouseRobbery1', function(spawn)
return { objects, POIOffsets }
end)
```
</br>

**Dont forget to add this to 'client > functions' in your qb-core**
```
function QBCore.Functions.FaceToPos(x, y, z)
local ped = PlayerPedId()
local positionToFace = vector3(x,y,z)
local pedPos = GetEntityCoords(ped)
local x = positionToFace.x - pedPos.x
local y = positionToFace.y - pedPos.y
local heading = GetHeadingFromVector_2d(x, y)
SetEntityHeading(ped, heading)
end
```

0 comments on commit b4d73e9

Please sign in to comment.