View Issue Details

IDProjectCategoryView StatusLast Update
0008999New Feature Requests[All Projects] Generalpublic2017-06-18 20:56
ReporterDLmassAssigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0008999: [Request] createWeapon server side
Description

Add the ability to use createWeapon serversided.

TagsNo tags attached.

Activities

Myths

2015-08-16 21:42

viewer   ~~0023952

Can be done through LUA,
https://wiki.multitheftauto.com/wiki/TriggerServerEvent
https://wiki.multitheftauto.com/wiki/TriggerClientEvent

qaisjp

2015-08-16 22:04

administrator   ~~0023953

Last edited: 2015-08-16 22:05

View 2 revisions

Lua is not an acronym. It's Lua, not LUA.

Also, no, Myths - I don't think it'll sync correctly.

castillo14

2015-08-17 00:07

viewer   ~~0023954

I re-created most of custom weapon functions server side using element data, it works pretty good tbh.

I guess as qaisjp said, it might not be the best synchronization out there, but it does the job.

qaisjp

2015-08-17 01:06

administrator   ~~0023955

I was just working on #9000 and I came across...

https://github.com/multitheftauto/mtasa-blue/blob/master/MTA10_Server/mods/deathmatch/logic/lua/CLuaFunctionDefs.Weapon.cpp

https://github.com/multitheftauto/mtasa-blue/blob/master/MTA10_Server/mods/deathmatch/logic/lua/CLuaManager.cpp#L536

No idea why it has been disabled, can an MTA dev provide some insight here?

ccw

2015-08-17 01:16

administrator   ~~0023956

Check the commit message which disabled them

qaisjp

2015-08-17 01:19

administrator   ~~0023957

Last edited: 2015-08-17 01:20

View 2 revisions

https://github.com/multitheftauto/mtasa-blue/commit/af58310b10e2885473598405ce1df6bc1d7cfd25

"Removed incomplete server side weapon functions from release build"

Aha, so assuming everything works fine behind the scenes all I need to do is add the rest of the Lua functions?

ccw

2015-08-17 02:29

administrator   ~~0023958

Check with Caz. He was working on it.

Issue History

Date Modified Username Field Change