[Standalone] Proximity RPChat (Edit)

This is an edit of LanceGood’s https://forum.cfx.re/t/release-proximity-rpchat-standalone-edition/83521. I did not create this, just edited it.

Download:
RPChat.zip (14.2 KB)
or

Installation:
Extract the folder to your resources, rename the folder to “rpchat”, and add the resource to the startup configuration, start rpchat.

Readme File:

Pictures:
https://media.shadowdevs.com/images/Proximity%20Chat/Example1.png
https://media.shadowdevs.com/images/Proximity%20Chat/Example2.png

If you have any questions please let me know and I will do my best to answer!

4 Likes

Can you upload a preview?

Is it like 3dMe ?

I would like to see a preview, Otherwise im sure its great

You can use this: 3dme.7z (1.5 KB)

2 Likes

No one will use this . Upload a preview otherwise i personally dont like to download stuff to waste my time without preview !

How can you even think about uploading without attaching a picture to the script ?

1 Like

A picture of a text chat resource. Got it.

1 Like

I just uploaded a preview. Hope this helps!

Looks great man thanks for doing that

2 Likes

Preview is uploaded! Sorry for the delay.

Preview is uploaded.

Appreciate it, man!

Proximity for me and do isnt working everyone sees it all over map

That is weird… last time I used it, it worked just fine, but maybe there was a change to how FiveM handles chat or something. I will try and look at it when I get some time.

Any change so if the user doesn’t use the / sends a OOC automatically but proximity? I did try this but doesn’t seem to work

RegisterNetEvent('sendProximityMessageOOP')
AddEventHandler('sendProximityMessageOOP', function(id, name, message)
	if string.sub(message, 1, string.len('/')) ~= '/' then
		TriggerEvent('chatMessage', "", {255, 0, 0}, " ^*^5OOP ^7| " .. id .."  "..":^5 " .. message)
	end
end)

Any change so if the user doesn’t use the / sends a OOC automatically but proximity? I did try this but doesn’t seem to work
VenoreRP

You might want to try something like this:

AddEventHandler('chatMessage', function(source, name, msg)
	local args = stringsplit(msg)
	CancelEvent()
	local src = source 
	if not string.find(args[1], "/") then
		TriggerEvent('chatMessage', "", {255, 0, 0}, " ^*^5OOP ^7| " .. id .."  "..":^5 " .. message)
	end
end)

and make sure it is in the server.lua!
I didn’t test it or anything, but I think it should work. Let me know though!

Can i create chat templates as esx_rpchat?