Price
UnknownA script by ArizonaDevelopment
Price
UnknownA simple system for the player to receive a request. It can be used for anything e.g. interaction animation between players, rejecting/accepting of calls…
Trigger
TriggerEvent(“ad_request:displayrequest”, DisplayRequest)
Export
exports.ad_requestsystem:DisplayRequest()
Example
DisplayRequest({
icon = 'fa-solid fa-phone-volume ',
label = ' Jack Dealer',
question = 'Do you want to answer',
align = 'top',
bgcolor = 'yellow',
textcolor = 'black',
acceptcolor = 'orange',
rejectcolor = 'red',
onAccept = function()
print('accepted')
end,
onReject = function()
print('rejected')
end,
})
Config File
Config = {}
Config.Keys = {
['accept'] = {
246 -- mean which key,
'Y', -- mean label of key
'Accept' -- mean label of button
},
['reject'] = {249, 'N', 'Reject'}
}
Config.DefaultSettings = {
['align'] = 'bottom',
['bgcolor'] = '#010a1ba3',
['textcolor'] = '#fff',
['acceptcolor'] = '#0f50b1',
['rejectcolor'] = '#a11212',
}
Purchase OPEN SOURCE OR FIVEM ASSETS
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | ~ 200 |
| Requirements | Nothing |
| Support | Yes |
See what others are saying about this script.
Share your experience and help others.