altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

hashResourceName and Resource.getByName #2199

Closed AWGshka closed 5 months ago

AWGshka commented 5 months ago

Description of the problem

Enabling hashResourceName in server.toml makes alt.Resource.getByName unable to find resource by it's name on client-side (since now name is hashed)

Reproduction steps

Enable hashResourceName in server.toml Create a resource1 with code alt.Resource.getByName("resouce2") Create a resource2 with/out any code

Expected behaviour

Resource should be found by name even if setting is true

Additional context

No response

Operating system

Windows 11

Version

release/16.0.10 & dev/16.0.0-149

Crashdump ID

No response

Confirmation of issue's presence

Doxoh commented 5 months ago

@AWGshka can u please add if its clientside or serverside

AWGshka commented 5 months ago

@AWGshka can u please add if its clientside or serverside

Hashing changes the name of resources on the client. But just in case, added it for clarification.

Doxoh commented 5 months ago

its confirmed on client.

Serverside works

martonp96 commented 5 months ago

should be fixed in dev164