Integration
ME/DO Integration
-- for a DO
TriggerEvent('rcore_cam:do', Source, text)
-- for a ME
TriggerEvent('rcore_cam:me', Source, text)
-- Example (do NOT use the following code)
RegisterCommand('do', function(source, args)
local Source = source
local text = table.concat(args, " ")
Send3dTextToMany("DO", 'lsrp_chat:do', Source, text, 'msg_do')
TriggerEvent('rcore_cam:do', Source, text) -- example of triggering a DO
end, true)Animation integration
Last updated