Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Commit

Permalink
v1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ghermans committed Apr 5, 2018
1 parent 0ba1db5 commit bbab150
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.

## v1.3.5
- Server administrators can now configure the control key for the **vehicle inventory**.
- Fixed a issue with vehicle network registration.

## v1.3.4
- Added Doomsday heists weapons to the Ammu-Nation stores.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# fs_freemode
[![Version](https://img.shields.io/badge/Version-v1.3.5-brightgreen.svg)]()
[![GitHub license](https://img.shields.io/github/license/FiveM-Scripts/fs_freemode.svg)](https://github.com/FiveM-Scripts/fs_freemode/blob/master/LICENSE)
<a href="https://discord.gg/Cgr5FU6" title="Chat on Discord"><img alt="Discord Status" src="https://discordapp.com/api/guilds/285462938691567627/widget.png"></a>
<a href="https://discord.gg/qnAqCEd" title="Chat on Discord"><img alt="Discord Status" src="https://discordapp.com/api/guilds/285462938691567627/widget.png"></a>

## Requirements
- [FXServer](https://wiki.fivem.net/wiki/Running_FXServer)
Expand Down
2 changes: 1 addition & 1 deletion __resource.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9'
resource_repository 'https://github.com/FiveM-Scripts/fs_freemode'
resource_type 'gametype' { name = 'fs_freemode'}
resource_version 'v1.3.4'
resource_version 'v1.3.5'

dependency 'essentialmode'

Expand Down
9 changes: 3 additions & 6 deletions int/vehicles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,7 @@ AddEventHandler('FinishMoneyCheckForVeh', function(moneyCheck)

FreezeEntityPosition(PlayerPedId(), false)
local personal = CreateVehicle(model, -19.521, -1117.096, 26.765, 175.394, true, true)
local id = NetworkGetNetworkIdFromEntity(personal)

SetNetworkIdCanMigrate(id, true)
SetVehicleOnGroundProperly(personal)

-- SetEntityAsMissionEntity(personal, true, true)
SetEntityVisible(playerPed, true)

SetVehRadioStation(personal, "OFF")
Expand All @@ -305,7 +300,9 @@ AddEventHandler('FinishMoneyCheckForVeh', function(moneyCheck)
SetVehicleExtraColours(personal, extra_colors[1],extra_colors[2])
TaskWarpPedIntoVehicle(PlayerPedId(), personal, -1)


local netid = NetworkGetNetworkIdFromEntity(personal)
SetNetworkIdCanMigrate(netid, true)
NetworkRegisterEntityAsNetworked(VehToNet(personal))
else
if DoesEntityExist(fakecar.car) then
Citizen.InvokeNative(0xEA386986E786A54F, Citizen.PointerValueIntInitialized(fakecar.car))
Expand Down

0 comments on commit bbab150

Please sign in to comment.