SnailyCAD / fivem-integrations

FiveM Integrations for SnailyCADv4
https://docs.snailycad.org/docs/fivem-integrations/scripts
MIT License
7 stars 5 forks source link

call911/tow/taxi exports #93

Closed marshular closed 11 months ago

marshular commented 11 months ago

Add exports to the sna-call911 script.

exports: exports["sna-call911"]:StartCall(caller_id, call_reason) or whatever you see fit exports["sna-calltwo"]:StartCall(caller_id, call_reason) or whatever you see fit exports["sna-calltaxi"]:StartCall(caller_id, call_reason) or whatever you see fit

casperiv0 commented 11 months ago

Actually, looking at the current implementation, this won't be that simple. Therefore I'm also not going to implement this. You can trigger a server event sn:911CallUpdate and register a client even for success/failure using sn:911CallResponse.

Code: server and client