Get street native

I’m trying to write a command, and I have the main function, but I’m looking for native such as GetPlayerName, GetPlayerID, for a street location. So it is displayed

^0Location: ^3" … GetStreetName …

Something like that

Have a look at a panic button script in the releases :wink:

Cheers mate I’ll take a look

Erm, slight problem they are in .dll and .net formats. Can I edit and open these through Visual Studio?

Would a decompiler work and then exporting the code to Visual Studio?

Yeah I tried that but the command itself doesn’t work. nothing happens. it just posts 2 messages from /down

I have done this

Client.lua:

RegisterCommand(‘911’, function(source, args, rawCommand)
local ped = PlayerPedId()
local x,y,z = table.unpack(GetEntityCoords(ped, false))
local streetName, crossing = GetStreetNameAtCoord(x, y, z)
streetName = GetStreetNameFromHashKey(streetName)
local message = “”
if crossing ~= nil then
crossing = GetStreetNameFromHashKey(crossing)3
message = “911 - Caller ID |”, {255, 64, 69} … GetPlayerName(source) … “^0Location:^3” … streetName … " ^0and ^3" … crossing … “^0Incident:^3”
else
message = “911 - Caller ID |”, {255, 64, 69} … GetPlayerName(source) … “^0Location:^3” … streetName … “^0Incident:^3”
else
end
TriggerServerEvent(‘sendChatMessage’, message)
end, false)

Server.lua:

RegisterServerEvent(‘sendChatMessage’)
AddEventHandler(‘sendChatMessage’, function(message)
TriggerClientEvent(‘chatMessage’, -1, ‘’, {255,255,255}, message)
end)

__resource.lua:

resource_manifest_version ‘77731fab-63ca-442c-a67b-abc70f28dfa5’
client_script{
‘client.lua’
}
server_script{
‘server.lua’
}