https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
如果你想将其添加到 qb-radialmenu:https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
- 将这段代码添加到events.lua文件的最后:
- https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
位置v-vehControl / Client / events.luahttps://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
RegisterNetEvent('veh:options')https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
AddEventHandler('veh:options', function()https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
ExecuteCommand("vehmenu")https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
end) https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
2. 将这段代码添加到:https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
位置qb-radialmenu / Config.lua id = "vehicle",https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
displayName = "Araba",https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
icon = "#vehicle-options",https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
functionName = "veh:options",https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
enableMenu = function()https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
local Data = QBCore.Functions.GetPlayerData()https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
return (not Data.metadata["isdead"] and not Data.metadata["inlaststand"] and IsPedInAnyVehicle(PlayerPedId(), false))https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
endhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
},https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
{ https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
|